Part Number Hot Search : 
4D391 MAX987 AMF9011S SAA2003H MCH6652 MT91600 MT91600 50000
Product Description
Full Text Search
 

To Download S1D13503 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 S1D13503 Graphics LCD Controller
S1D13503 TECHNICAL MANUAL
Issue Date: 01/01/30 Document Number: X18A-Q-001-07
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page ii
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503
Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page iii
CUSTOMER SUPPORT INFORMATION
Comprehensive Support Tools
Seiko Epson Corp. provides to the system designer and computer OEM manufacturer a complete set of resources and tools for the development of graphics systems.
Evaluation / Demonstration Board
* * Assembled and fully tested graphics evaluation board with installation guide and schematics To borrow an evaluation board, please contact your local Seiko Epson Corp. sales representative
VGA Chip Documentation
* Technical manual includes Data Sheet, Application Notes, and Programmer's Reference
Software
* * * * * Video BIOS OEM Utilities User Utilities Evaluation Software To obtain these programs, contact Application Engineering Support
Application Engineering Support
Engineering and Sales Support is provided by:
Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 Taiwan, R.O.C. Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan, R.O.C. Tel: 02-2717-7360 Fax: 02-2712-9164 Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716
Issue Date: 01/01/30
S1D13503
Page iv
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503
Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page v
TABLE OF CONTENTS
INTRODUCTION
S1D13503 Graphics LCD Controller Data Sheet
SPECIFICATION
S1D13503 Hardware Functional Specification
PROGRAMMER'S REFERENCE
S1D13503 Programming Notes and Examples
UTILITIES
13503SHOW.EXE Display Utility 13503VIRT.EXE Display Utility 13503BIOS.COM Display Utility 13503MODE.EXE Display Utility 13503PD.EXE Power Down Utility 13503READ.EXE Diagnostic Utility
EVALUATION
S5U13503B00C Rev 1 Evaluation Board User Manual
APPLICATION NOTES
Power Consumption ISA Bus Interface Considerations MC68340 Interface Considerations LCD Panel Options/Memory Requirements S1D13503/S1D13502 Feature Comparison
Issue Date: 01/01/30
S1D13503
Page vi
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503
Issue Date: 01/01/30
GRAPHICS S1D13503
January 2001
S1D13503 GRAPHICS LCD CONTROLLER
s DESCRIPTION
The S1D13503 is a dot matrix graphic LCD controller supporting resolutions up to 1024x1024. It is capable of displaying a maximum of 256 simultaneous colors out of a possible 4096 or 16 gray shades. Design flexibility allows the S1D13503 to interface to either an MC68000 family microprocessor or an 8/16-bit MPU/bus with minimum external logic. The Static RAM (SRAM) interface used for the display buffer is optimized for speed and performance, supporting up to 128K bytes. Two power save modes, combined with operating voltages of 2.7 volts through 5.5 volts, allow for a wide range of applications while providing minimum power consumption.
s FEATURES
CPU Interface Display Support
* Pin compatible with the S1D13502. * 16-bit 16 MHz MC68xxx MPU interface. * 8/16-bit MPU interface controlled by a READY
(or WAIT#) signal.
* Single-panel, single-drive passive display.
Dual-panel, dual-drive passive display.
* Maximum number of vertical lines:
1,024 lines (single-panel, single-drive display). 2,048 lines (dual-panel, dual-drive display).
* Option to use built-in index register or direct-mapping to access one of sixteen internal registers.
* Split screen display support allowing two different
images to be simultaneously displayed.
Memory Interface
* 8/16-bit SRAM interface configurations:
128K bytes using one 64Kx16 SRAMs. 128K bytes using two 64Kx8 SRAMs. 64K bytes using two 32Kx8 SRAMs. 40K bytes using one 8Kx8 and one 32Kx8 SRAM. 32K bytes using one 32Kx8 SRAM. 16K bytes using two 8Kx8 SRAMs. 8K bytes using one 8Kx8 SRAM.
* Virtual display support (displays images larger than
the panel size through the use of panning).
Clock Source
* 2-terminal crystal or external oscillator.
Power Down Modes
* Low power consumption. * Two software power-save modes.
Package
Display Modes
* Black-and-white display. * 2/4 bits-per-pixel, 4/16-level gray-scale display. * 2/4/8 bits-per-pixel, 4/16/256-level color display.
* QFP5-100-S2 package (F00A). * QFP15-100-STD package (F01A).
X18A-C-002-03
1
GRAPHICS S1D13503
s SYSTEM BLOCK DIAGRAM
CLOCK
Control
CPU
Clock
S1D13503
Digital Out
Flat Panel
SRAM
QFP5-100-S2 (S1D13503F00A)
QFP15-100-STD (S1D13503F01A)
CONTACT YOUR SALES REPRESENTATIVE FOR THESE COMPREHENSIVE DESIGN TOOLS: * S1D13503 Technical Manual * S5U13503 Evaluation Boards * CPU Independent Software Utilities
Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346
North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110
Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716
Copyright (c)1997, 2001 Epson Research and Development, Inc. All rights reserved. VDC Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/ EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation.
2
X18A-C-002-03
S1D13503 Dot Matrix Graphics Color LCD Controller
Hardware Functional Specification
Document Number: X18A-A-001-08
Copyright (c) 1997, 2001Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
Table of Contents
1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.1 1.2 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Overview Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2
FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 2.2 2.3 2.4 2.5 Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Display Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Display Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3
TYPICAL SYSTEM BLOCK DIAGRAMS . . . . . . . . . . . . . . . . . . . . . . 12
3.1 3.2 3.3 3.4 3.5 16-Bit MC68000 MPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 MPU with READY (or WAIT#) signal ISA Bus Internal Block Diagram . . . . . . . . . . . . . . . . . . . . . . 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Functional Block Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.1 Bus Signal Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.2 Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.3 Sequence Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.4 LCD Panel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.5.5 Look-Up Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.6 Port Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.7 Memory Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.8 Data Bus Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.9 Address Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.10 MPU / CRT Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.11 Display Data Formatter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.12 Clock Inputs / Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.5.13 SRAM Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 5
PINOUT DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.1 5.2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Summary of Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . 26
6 7
D.C. CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 A.C. CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
7.1 Bus Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.1.1 MC68000 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.1.2 Non-MC68000, MPU/Bus With READY (or WAIT#) Signal . . . . . . . . . . . . . . . 33 7.2 Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.2.1 Recommended Clock Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 4
Epson Research and Development Vancouver Design Center
7.3
Display Memory Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . 39 7.3.1 Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.3.2 Read Data From Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
7.4
LCD Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.4.1 LCD Interface Timing - 4-Bit Single, 8-Bit Single/Dual Monochrome Panels . . . . . . . 41 7.4.2 LCD Interface Timing - 4-Bit Single Color Panel . . . . . . . . . . . . . . . . . . . . . . 44 7.4.3 LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels . . . 46 7.4.4 LCD Interface Timing - 16-Bit Single/Dual Color Panels . . . . . . . . . . . . . . . . . . 48 7.4.5 LCD Interface Timing - 8-Bit Single Color Panels Format 1 . . . . . . . . . . . . . . . . 50 7.4.6 LCD Interface Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8
HARDWARE REGISTER INTERFACE . . . . . . . . . . . . . . . . . . . . . . . .61
8.1 8.2 Register Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 72 8.2.1 Gray Shade Display Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 8.2.2 Color Display Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 8.3 Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 8.3.1 Power Save Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 8.3.2 Power Save Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 8.3.3 Power Save Mode Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 8.3.4 Pin States in Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9
DISPLAY MEMORY INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . .79
9.1 SRAM Configurations Supported . . . . . . . . . . . . . . . . . . . . . . . . 79 9.1.1 8-Bit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 9.1.2 16-bit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 9.2 SRAM Access Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.2.1 8-bit Display Memory Interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.2.2 16-bit Display Memory Interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 9.3 Frame Rate Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.3.1 For single panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.3.2 For dual panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 9.4 9.5 Memory Size Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Memory Size Requirement . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
10 MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 5
List of Tables
Table 4-1: Table 5-1: Table 5-2: Table 5-3: Table 5-4: Table 5-5: Table 5-6: Table 5-7: Table 6-1: Table 6-2: Table 6-3: Table 6-4: Table 7-1: Table 7-2: Table 7-3: Table 7-4: Table 7-5: Table 7-6: Table 7-7: Table 7-8: Table 7-9: Table 7-10: Table 7-11: Table 7-12: Table 7-13: Table 7-14: Table 7-15: Table 7-16: Table 8-1: Table 8-2: Table 8-3: Table 8-4: Table 8-5: Table 8-6: Table 8-7: Table 8-8: Table 8-9: Table 8-10: Table 8-11: Table 9-1: Table 9-2: Table 9-3: Table 9-4: Table 9-5: PAD Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Display Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LCD Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Summary of Power On / Reset Options . . . . . . . . . . . . . . . . . . . . . . . . . I/O and Memory Addressing Example . . . . . . . . . . . . . . . . . . . . . . . . . Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Recommended Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . Input Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOW# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOR# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MEMW# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MEMR# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOW# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOR# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MEMW# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . MEMR# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read Data From Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . LCD Interface Timing - 4-Bit Single and 8-Bit Single/Dual Monochrome Panel . . . LCD Interface Timing - 4-Bit Single Color Panel. . . . . . . . . . . . . . . . . . . . LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels . LCD Interface Timing - 16-Bit Single/Dual Color Panels . . . . . . . . . . . . . . . LCD Interface Timing - 8-Bit Single Color Panels Format 1 . . . . . . . . . . . . . . Gray Shade/Color Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . LCD Data Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Maximum Value of Line Byte Count Register - 8-Bit Display Memory Interface . . . Maximum Value of Line Byte Count Register - 16-Bit Display Memory Interface . . Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ID Bit Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Look-Up Table Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Look-Up Table Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Save Mode Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . Pin States in Power Save Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-Bit Display Memory Interface SRAM Access Time . . . . . . . . . . . . . . . . . 16-Bit Display Memory Interface SRAM Access Time. . . . . . . . . . . . . . . . . Memory Size Requirement: Number of Horizontal Pixels = 640 . . . . . . . . . . . . Memory Size Requirement: Number of Horizontal Pixels = 480 . . . . . . . . . . . . Memory Size Requirement: Number of Horizontal Pixels = 320 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 . 22 .24 . 25 . 25 . 25 .26 .26 .27 .27 .27 .28 .29 .30 .31 .32 .33 .34 .35 .36 .37 .39 .40 . 42 . 45 . 47 . 49 . 51 .62 . 63 . 64 . 64 .64 . 70 .70 .72 .77 .78 .78 . 83 . 83 . 85 . 86 . 86
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 6
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 7
List of Figures
Figure 1: Figure 2: Figure 3: Figure 4: Figure 5: Figure 6: Figure 7: Figure 8: Figure 9: Figure 10: Figure 11: Figure 12: Figure 13: Figure 14: Figure 15: Figure 16: Figure 17: Figure 18: Figure 19: Figure 20: Figure 21: Figure 22: Figure 23: Figure 24: Figure 25: Figure 26: Figure 27: Figure 28: Figure 29: Figure 30: Figure 31: Figure 32: Figure 33: Figure 34: Figure 35: Figure 36: 16-Bit 68000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 8-Bit Mode, Example: Z80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 16-Bit Mode, Example: i8086 (maximum mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 8-Bit Mode (ISA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 16-Bit Mode (ISA). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Internal Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 S1D13503 Pinout Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 S1D13503 Pinout Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 S1D13503 Pad Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 IOW# Timing (MC68000). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 IOR# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 MEMW# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 MEMR# Timing (MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 IOW# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 IOR# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 MEMW# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 MEMR# Timing (Non-MC68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 Recommended Clock Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 Read Data From Display Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 LCD Interface Timing - Monochrome Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 LCD Interface Timing - 4-Bit Single Color Panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels . . . . . . . . . 46 LCD Interface Timing - 16-Bit Single/Dual Color Panels . . . . . . . . . . . . . . . . . . . . . . . 48 LCD Interface Timing - 8-Bit Single Color Panels Format 1 . . . . . . . . . . . . . . . . . . . . . . 50 4-Bit Single Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 8-Bit Single Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 8-Bit Dual Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 4-Bit Single Color Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 8-Bit Single Color Panel Timing - Format 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 8-Bit Single Color Panel Timing - Format 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 8-Bit Dual Color Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 External Circuit Required for 16-Bit Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 16-Bit Single Color Panel Timing with External Circuit . . . . . . . . . . . . . . . . . . . . . . . . 59 16-Bit Dual Color Panel Timing with External Circuit . . . . . . . . . . . . . . . . . . . . . . . . . 60
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 8
Epson Research and Development Vancouver Design Center
Figure 37: Figure 38: Figure 39: Figure 40: Figure 41: Figure 42: Figure 43: Figure 44: Figure 45: Figure 46: Figure 47: Figure 48: Figure 49: Figure 50: Figure 51:
4-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . 72 16-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . 73 4-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 16-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 75 256-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 76 8-Bit Mode - 8K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 8-Bit Mode - 16K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 8-Bit Mode - 32K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 8-Bit Mode - 40K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 8-Bit Mode - 64K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 16-Bit Mode - 16K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 16-Bit Mode - 64K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 16-Bit Mode - 128K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Mechanical Drawing QFP5-100-S2 (S1D13503) . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Mechanical Drawing QFP15-100-STD (S1D13503). . . . . . . . . . . . . . . . . . . . . . . . . . 88
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 9
1 INTRODUCTION
1.1 Scope
This is the Functional Specification for the S1D13503 Dot Matrix Graphic Color LCD Controller. Included in this document are timing diagrams, AC and DC characteristics, register descriptions, and power management descriptions. This document is intended for two audiences, Video Subsystem Designers and Software Developers.
1.2 Overview Description
This device is designed for products where low cost, low power consumption, and low component count are the major design considerations. This chip operates from 2.7 Volts to 5.5 Volts and up to 25MHz to suit different power consumption, speed and cost requirements. The S1D13503 offers a flexible microprocessor interface, and is pin compatible with the S1D13502 within the same package types (e.g. the 13503D0A is pin compatible with the 13502; the 13503 is pin compatible with the 13502). The S1D13503 is capable of displaying a maximum of 16 levels of gray shade or 256 simultaneous colors. In gray shade modes, a 16x4 Look-Up Table is provided to allow remapping of the 16 possible gray shades displayed on the LCD panel. In color modes, three 16x4 Look-Up Tables are provided to allow remapping of the 4096 possible colors displayed on the LCD panel. The S1D13503S1D13503 can interface to an MC68000 family microprocessor or an 8/16-bit MPU/Bus with minimum external "glue" logic. This device can directly control up to 128K bytes of static RAM with a 16-bit data path, or up to 64K bytes with an 8-bit data path.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 10
Epson Research and Development Vancouver Design Center
2 FEATURES
2.1 Technology
* * * * low power CMOS 2.7 to 5.5 volt operation 100 pin QFP5-S2 surface mount package 100 pin QFP15-STD surface mount package
2.2 System
* * * * * * * maximum 25 MHz input clock (or pixel clock) 2-terminal crystal input for internal oscillator or direct connection to external clock source maximum 16 MHz, 16-bit MC68000 MPU interface 8-bit or 16-bit MPU/Bus interface with memory accesses controlled by a READY (or WAIT#) signal option to use built-in index register or direct-mapping to access one of sixteen internal registers 8-bit or 16-bit SRAM data bus interface configurations display memory configurations : * * * * * * * 128k bytes using one 64Kx16 SRAM 128k bytes using two 64Kx8 SRAMs 64k bytes using two 32Kx8 SRAMs 40k bytes using one 8Kx8 and one 32Kx8 SRAM 32k bytes using one 32Kx8 SRAM 16k bytes using two 8Kx8 SRAMs 8k bytes using one 8Kx8 SRAM
2.3 Display Modes
* * * * * * * * * 1 bit-per-pixel, black-and-white display mode 2/4 bits-per-pixel, 4/16 level gray shade display modes 2/4/8 bits-per-pixel, 4/16/256 level color display modes one 16x4 Look-Up Table provided for gray shade display modes three 16x4 Look-Up Tables provided for color display modes maximum 16 shades of gray maximum 256 simultaneous colors from a possible 4096 colors split screen display mode (see AUX[0A]) virtual display mode (see AUX[0D])
Note 256 color display mode support requires a 16-bit display memory interface
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 11
2.4 Display Support
* example resolutions: * * * * * 1024 x 768 black-and-white 640 x 480 with 4 colors/grays 640 x 400 with 16 colors/grays 320 x 240 with 256 colors
passive monochrome LCD panels: * * * 4-bit single (4-bit data transfer) 8-bit single (8-bit data transfer) 8-bit dual (4-bit data transfer for each half panel)
*
passive color LCD panels: * * * * * 4-bit single (4-bit data transfer) 8-bit single (8-bit data transfer) 8-bit dual (4-bit data transfer for each half panel) 16-bit single (8-bit data transfer with external circuit) 16-bit dual (8-bit data transfer with external circuit)
See Section 9.5 on page 85 for complete details
2.5 Power Management
* * * two software power-save modes low power consumption panel power control switch (see AUX[01] bit 4)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 12
Epson Research and Development Vancouver Design Center
3 TYPICAL SYSTEM BLOCK DIAGRAMS
The following figures show typical system implementations of the S1D13503. All of the following block diagrams are shown without SRAM or LCD display. Refer to the interface specific Application Notes for complete details.
3.1 16-Bit MC68000 MPU
MC68000
A20 to A23 FC0 to FC1 Decoder A14 to A16 Decoder A10 to A19 A1 to A19 D0 to D15 DTACK# UDS# LDS# AS# R/W#
S1D13503
MEMCS#
IOCS# AB1 to AB19 DB0 to DB15 READY AB0 BHE# IOR# IOW#
Figure 1: 16-Bit 68000 Series (example implementation only - actual may vary)
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 13
3.2 MPU with READY (or WAIT#) signal
Z80
MREQ# MI# IORQ# A0 to A15 D0 to D7 WAIT# WR# RD# A10 to A15
Decoder
S1D13503
MEMCS# IOCS#
Decoder
AB0 to AB15 DB0 to DB7 READY MEMW# MEMR# IOR# IOW# RESET
RESET#
Figure 2: 8-Bit Mode, Example: Z80 (example implementation only - actual may vary)
8086 (Maximum mode)
CLK
CLK READY RESET# RDY CLK
8288
S2# S1# S0# DEN DT/R ALE MRDC# AMWC# IORC# AIOWC#
S1D13503
MEMR# MEMW# IOR# IOW#
READY RESET#
S2# S1# S0#
8284A A16 to A19
A16
AB16 to AB19 Decoder
M/IO#
AB0 to AB15 BHE# MEMCS# IOCS# DB0 to DB15
BHE# AD0 to AD15
BHE# A0 to A16 STB D0 to D15 T OE
Transceiver
RESET READY
Figure 3: 16-Bit Mode, Example: i8086 (maximum mode) (example implementation only - actual may vary)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 14
Epson Research and Development Vancouver Design Center
3.3 ISA Bus
8-Bit ISA Bus
REFRESH SMEMW# SMEMR# IOCHRDY SD0 to SD7 SA0 to SA19 SA10 to SA15 AEN IOW# IOR# RESET# Decoder SA16 to SA13 Decoder
S1D13503
MEMCS# MEMW# MEMR# READY DB0 to DB7 AB0 to AB19 IOCS# IOW# IOR# RESET
optional
Decoder SA(1 or 4) through SA9
0WS#
Figure 4: 8-Bit Mode (ISA) (example implementation only - actual may vary)
16-bit ISA Bus
REFRESH SA16 to SA14 SMEMW# SMEMR# IOCHRDY SD0 to SD15 SA0 to SA19 SA10 to SA15 AEN IOW# IOR# SBHE# RESET# IOCS16# LA17 to LA23 MEMCS16# Decoder Decoder Decoder Decoder
S1D13503
MEMCS# MEMW# MEMR# READY DB0 to DB15 AB0 to AB19 IOCS# IOW# IOR# BHE# RESET
SA(1 or 4) through SA9
Figure 5: 16-Bit Mode (ISA) (example implementation only - actual may vary)
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 15
3.4 Internal Block Diagram
Control Registers
IOR#, IOW#, IOCS#, MEMCS#, MEMR#, MEMW#, BHE#, AB[19:0]
Bus Signal Translation
Port Decoder Memory Decoder Data Bus Conversion
Sequence Controller Lookup Table Address Generator MPU/CRT Selector LCD Panel Interface
LCDENB UD[3:0] LD[3:0] LP, YD, XSCL, WF(XSCL2)
READY
DB[15:0]
Display Data Formatter
Timing Generator Power Save Oscillator
OSC1 OSC2
SRAM Interface
VWE# VOE# VCS0#, VCS1#
VA[15:0]
VD[15:0]
Figure 6: Internal Block Diagram
3.5 Functional Block Descriptions 3.5.1 Bus Signal Translation
According to configuration setting VD2, Bus Signal Translation translates MC68000 type MPU signals, or READY type MPU signals to internal bus interface signals.
3.5.2 Control Registers
The Control Register contains 16 internal control and configuration registers. These registers can be accessed by either direct-mapping or by using the built-in internal index register.
3.5.3 Sequence Controller
The Sequence Controller generates horizontal and vertical display timings according to the configuration registers settings.
3.5.4 LCD Panel Interface
The LCD Panel Interface performs frame rate modulation and output data pattern formatting for both passive monochrome and passive color LCD panels.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 16
Epson Research and Development Vancouver Design Center
3.5.5 Look-Up Table
The Look-Up Table contains three 16x4-bit wide palettes. In gray shade modes, the "green" palette can be configured for the re-mapping of 16 possible shades of gray. In color modes, all three palettes can be configured for the re-mapping of 4096 possible colors.
3.5.6 Port Decoder
According to configuration settings VD1, VD12 - VD4, IOCS# and address lines AB9-1, the Port Decoder validates a given I/O cycle.
3.5.7 Memory Decoder
According to configuration settings VD15 - VD13, MEMCS# and address lines AB19-17, the Memory Decoder validates a given memory cycle.
3.5.8 Data Bus Conversion
According to configuration setting VD0, Data Bus Conversion maps the external data bus, either 8-bit or 16-bit, into the internal odd and even data bus.
3.5.9 Address Generator
The Address Generator generates display refresh addresses to be used to access display memory.
3.5.10 MPU / CRT Selector
The MPU / CRT Selector grants access to the display memory from either the MPU or the display refresh circuitry.
3.5.11 Display Data Formatter
The Display Data Formatter reads in the display data from the display memory and outputs the correct format for all supported gray shade and color selections.
3.5.12 Clock Inputs / Timing
Clock Inputs / Timing generates the internal master clock according to gray-level / color selected and display memory interface. The master clock (MCLK) can be: - MCLK = input clock - MCLK = 1/2 input clock - MCLK = 1/4 input clock. Pixel clock = input clock = fOSC.
3.5.13 SRAM Interface
The SRAM Interface generates the necessary signals to interface to the Display Memory (SRAM).
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 17
4 PINOUT DIAGRAM
80 WF/XSCL2*
79
78
77
76
75
74
73
72
51 VD7 52 VSS 53 VDD 54 VD8 55 VD9 56 VD10 57 VD11 58 VD12 59 VD13 60 VD14 61 VD15 62 VA11 63 VA12 64 VA13 65 VA14 66 VA15 67 VWE# 68 VCS0# 69 VCS1# 70 UD3 71 UD2
LP
YD
LD0
LD1
LD2
LD3
UD0
UD1
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
XSCL LCDENB VOE# IOCS# IOW# IOR# MEMCS# MEMW# MEMR# READY BHE# OSC1 OSC2 DB0 DB1 DB2 DB3 DB4 DB5 DB6
S1D13503F00A
VD6 VD5 VD4 VD3 VD2 VD1 VD0 VA10 VA9 VA8 VA7 VA6 VA5 VA4 VA3 VA2 VA1 VA0 RESET AB19
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31
DB11 7 DB10 6
DB13 9 DB12 8
DB15 11 DB14 10
AB10
AB12
AB13
AB14
AB15
AB16
AB17
AB18
AB11
Package type: 100 pin surface mount QFP5-S2. Note * Pin 80 = WF in all display modes except format 1 for 8-bit single color panel. * Pin 80 = XSCL2 in format 1 for 8-bit single color panel.
Hardware Functional Specification Issue Date: 01/01/29
VSS 2 DB7 1
DB9 5 DB8 4 VDD 3
Figure 7: S1D13503F00A Pinout Diagram
AB1 13 AB0 12
AB3 15 AB2 14
AB5 17 AB4 16
AB7 19 AB6 18
AB8 20
AB9 21
22
23
24
25
26
27
28
29
30
S1D13503 X18A-A-001-08
Page 18
Epson Research and Development Vancouver Design Center
75 YD
74
73
72
71
70
69
51 VD8 52 VD9 53 VD10 54 VD11 55 VD12 56 VD13 57 VD14 58 VD15 59 VA11 60 VA12 61 VA13 62 VA14 63 VA15 64 VWE# 65 VCS0# 66 VCS1# 67 UD3 68 UD2
LD0
LD1
LD2
LD3
UD0
UD1
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
LP WF/XSCL2* XSCL LCDENB VOE# IOCS# IOW# IOR# MEMCS# MEMW# MEMR# READY BHE# OSC1 OSC2 DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 VSS VDD DB9 2 DB8 1
S1D13503F01A
VDD VSS VD7 VD6 VD5 VD4 VD3 VD2 VD1 VD0 VA10 VA9 VA8 VA7 VA6 VA5 VA4 VA3 VA2 VA1 VA0 RESET AB19 AB18 AB17
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26
25 AB16 24 AB15 23 AB14 22 AB13 21
Package type: 100 pin surface mount QFP15-STD. Note * Pin 77 = WF in all display modes except format 1 for 8-bit single color panel. * Pin 77 = XSCL2 in format 1 for 8-bit single color panel.
DB11 4 DB10 3
DB13 6 DB12 5
Figure 8: S1D13503F01A Pinout Diagram
DB15 8 DB14 7
AB10
AB12
AB11
AB0 9
AB1 10
AB2 11
AB3 12
AB4 13
AB5 14
AB6 15
AB7 16
AB8 17
AB9 18
19
20
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 19
VA11 VA12 VA13 VA14 VA15 VWE# VCS0# VCS1#
VD8 VD9 VD10 VD11 VD12 VD13 VD14 VD15
UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
VDD
VSS
YD
LP WF/XSCL2* XSCL LCDENB VOE# IOCS# IOW# IOR# MEMCS# MEMW# MEMR# READY BHE# OSC1 OSC2 DB0 DB1 120 DB2 DB3 DB4 DB5 DB6 100 110 DB7 Dummy Pad 1 VSS
Dummy Pad
90
80
70
VD7
60
VD6 VD5 VD4 VD3 VD2 VD1 VD0 VA10 VA9
50
S1D13503D00A
VA8 VA7 VA6 VA5 VA4 VA3 40 VA2 VA1 VA0 RESET AB19
10 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 VDD
20 AB7 AB6 AB5 AB4 AB3 AB2 AB1 AB0
30 AB16 AB15 AB14 AB13 AB12 AB11 AB10 AB9 AB8 AB18 AB17
Chip Size Chip Thickness Pad Size Pad Pitch
= = = =
5.030 mm x 5.030 mm 0.400 mm 0.090 mm x 0.090 mm 0.126 mm (Min.)
Figure 9: S1D13503D00A Pad Diagram Note * Pad 97 = WF in all display modes except format 1 for 8-bit single color panel. * Pad 97 = XSCL2 in format 1 for 8-bit single color panel.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 20
Epson Research and Development Vancouver Design Center
Table 4-1: PAD Coordinates Pad No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Pin Name VSS --VDD DB8 DB9 DB10 DB11 DB12 DB13 DB14 DB15 --AB0 AB1 AB2 AB3 AB4 AB5 AB6 AB7 --AB8 AB9 AB10 AB11 AB12 AB13 AB14 AB15 AB16 --AB17 AB18 ----AB19 Pad Center Coordinate X Y -2.165 -2.390 -2.000 -2.390 -1.840 -2.390 -1.685 -2.390 -1.535 -2.390 -1.388 -2.390 -1.246 -2.390 -1.106 -2.390 -0.969 -2.390 -0.835 -2.390 -0.703 -2.390 -0.573 -2.390 -0.444 -2.390 -0.317 -2.390 -0.190 -2.390 -0.063 -2.390 0.063 -2.390 0.190 -2.390 0.317 -2.390 0.444 -2.390 0.573 -2.390 0.703 -2.390 0.835 -2.390 0.969 -2.390 1.106 -2.390 1.246 -2.390 1.388 -2.390 1.535 -2.390 1.685 -2.390 1.840 -2.390 2.000 -2.390 2.165 -2.390 2.390 -2.340 2.390 -2.000 2.390 -1.840 2.390 -1.685 Pad No. 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 Pin Name RESET VA0 VA1 VA2 --VA3 VA4 --VA5 VA6 --VA7 VA8 --VA9 VA10 --VD0 VD1 --VD2 VD3 VD4 VD5 VD6 ----VD7 VSS --VDD VD8 VD9 VD10 VD11 VD12 Pad Center Coordinate X Y 2.390 -1.535 2.390 -1.388 2.390 -1.246 2.390 -1.106 2.390 -0.969 2.390 -0.835 2.390 -0.703 2.390 -0.573 2.390 -0.444 2.390 -0.317 2.390 -0.190 2.390 -0.063 2.390 0.063 2.390 0.190 2.390 0.317 2.390 0.444 2.390 0.573 2.390 0.703 2.390 0.835 2.390 0.969 2.390 1.106 2.390 1.246 2.390 1.388 2.390 1.535 2.390 1.685 2.390 1.840 2.390 2.000 2.390 2.165 2.165 2.390 2.000 2.390 1.840 2.390 1.685 2.390 1.535 2.390 1.388 2.390 1.246 2.390 1.106 2.390
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 21
Table 4-1: PAD Coordinates Pad No. 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 Pin Name VD13 VD14 VD15 --VA11 VA12 VA13 VA14 VA15 VWE# VCS0# VCS1# --UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0 YD --LP WF/XSCL2 ----XSCL LCDENB Pad Center Coordinate X Y 0.969 2.390 0.835 2.390 0.703 2.390 0.573 2.390 0.444 2.390 0.317 2.390 0.190 2.390 0.063 2.390 -0.063 2.390 -0.190 2.390 -0.317 2.390 -0.444 2.390 -0.573 2.390 -0.703 2.390 -0.835 2.390 -0.969 2.390 -1.106 2.390 -1.246 2.390 -1.388 2.390 -1.535 2.390 -1.685 2.390 -1.840 2.390 -2.000 2.390 -2.340 2.390 -2.390 2.165 -2.390 2.000 -2.390 1.840 -2.390 1.685 -2.390 1.535 Pad No. 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 Pin Name VOE# IOCS# IOW# --IOR# MEMCS# --MEMW# MEMR# --READY BHE# --OSC1 OSC2 --DB0 DB1 --DB2 DB3 DB4 DB5 DB6 ----DB7 Dummy Pad Dummy Pad Pad Center Coordinate X Y -2.390 1.388 -2.390 1.246 -2.390 1.106 -2.390 0.969 -2.390 0.835 -2.390 0.703 -2.390 0.573 -2.390 0.444 -2.390 0.317 -2.390 0.190 -2.390 0.063 -2.390 -0.063 -2.390 -0.190 -2.390 -0.317 -2.390 -0.444 -2.390 -0.573 -2.390 -0.703 -2.390 -0.835 -2.390 -0.969 -2.390 -1.106 -2.390 -1.246 -2.390 -1.388 -2.390 -1.535 -2.390 -1.685 -2.390 -1.840 -2.390 -2.000 -2.390 -2.165 2.390 2.390 -2.390 -2.390
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 22
Epson Research and Development Vancouver Design Center
5 PIN DESCRIPTION
5.1 Description
Key: I O I/O P COx COxS TSx TSxD2 TTL TTLS = = = = = = = = = = Input Output Bidirectional (Input/Output) Power pin CMOS level output driver, x denotes driver type (see Table 6-4, "Output Specifications," on page 28) CMOS level output driver with slew rate control for noise reduction, x denotes driver type (see Table 6-4, "Output Specifications," on page 28) Tri-state CMOS level output driver, x denotes driver type (see Table 6-4, "Output Specifications," on page 28) Tri-state CMOS level output driver with pull down resistor (typical values of 100K/200 at 5V/3.0V respectively), x denotes driver type (see Table 6-4, "Output Specifications," on page 28) TTL level input (VDD = 5.0V, see Table 6-3, "Input Specifications," on page 27) TTL level input with hysteresis
Table 5-1: Bus Interface Pin Name Type F00A Pin # F01A Pin # D00A Pad # Driver Description
DB0DB15
I/O
94 100, 1, 4 -11
118119, 91 - 98, 121125, 1-8 128, 4-11 9 13 14-20, 22-30, 32-33, 36
TS2
These pins are connected to the system data bus. In 8-bit bus mode, DB8-DB15 must be tied to VDD.
AB0
I
12
TTLS
In MC68000 MPU interface, this pin is connected to the Upper Data Strobe (UDS#) pin of MC68000. In other MPU/Bus interfaces, this pin is connected to the system address bus.
AB1AB19
I
13 - 31
10 - 28
TTL
These pins are connected to the system address bus.
BHE#
I
91
88
113
TTLS
In MC68000 MPU interface, this pin is connected to the Lower Data Strobe (LDS#) pin of MC68000. In other MPU/Bus interfaces, this pin is the Byte High Enable input for use with 16-bit system. In 8-bit bus mode tie the BHE# input to VDD. Active low input to select one of sixteen internal registers.
IOCS#
I
84
81
103
TTLS
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 23
Table 5-1: Bus Interface Pin Name Type F00A Pin # F01A Pin # D00A Pad # Driver Description In MC68000 MPU interface, this pin is connected to the R/W# pin of MC68000. This input pin defines whether the data transfer is a read (active high) or write (active low) cycle. In other MPU/Bus interfaces, this is the active low input to write data into an internal register. In MC68000 MPU interface, this pin is connected to the AS# pin of MC68000. This input pin indicates a valid address is available on the address bus. In other MPU/Bus interfaces, this is the active low input to read data from an internal register. Active low input to indicate a memory cycle. Active low input to indicate a memory write cycle. This pin should be tied to VDD in an MC68000 MPU interface. Active low input to indicate a memory read cycle. This pin should be tied to VDD in an MC68000 MPU interface. For MC68000 MPU interface, this pin is connected to the DTACK# pin of MC68000 and is driven low when the data transfer is complete. In other MPU/Bus interfaces, this output is driven low to force the system to insert wait states when needed. READY is placed in a high impedance (Hi-Z) state after the transfer is completed. RESET I 32 29 37 TTLS Active high input to force all signals to their inactive states.
IOW#
I
85
82
104
TTLS
IOR#
I
86
83
106
TTLS
MEMCS# MEMW# MEMR#
I I I
87 88 89
84 85 86
107 109 110
TTLS TTLS TTLS
READY
O
90
87
112
TS3
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 24
Epson Research and Development Vancouver Design Center
Table 5-2: Display Memory Interface Pin Name Type F00A Pin # F01A Pin # D00A Pad # Driver Description These pins are connected to the display memory data bus. For 16bit interface, VD0-VD7 are connected to the display memory data bus of even byte addresses and VD8-VD15 are connected to the display memory data bus of odd byte addresses. The output drivers of these pins are placed in a high impedance state when RESET is high. On the falling edge of RESET, the values of VD0-VD15 are latched into the chip to configure various hardware options (see Section Table 5-6: on page 26). VD0-VD15 each have an internal pull-down resistor (see Section Table 6-3: on page 27). 38-40, 42-43, 33 - 43, 30 - 40 45-46, 62 - 66 59 - 63 48-49, 51-52, 77-81 69 68 67 83 66 65 64 80 84 83 82 102
VD0VD15
I/O
54-55, 44 - 51, 41 - 48, 57-61, 54 - 61 51 - 58 64, 68-75
TS1D2
VA0VA15
O
CO1
These pins are connected to the display memory address bus.
VCS1# O VCS0# O VWE# O VOE# O
CO1 CO1 CO1 CO1
Active low chip-select output to the second or odd byte address SRAM. See Display Memory Interface section for details. Active low chip-select output to the first or even byte address SRAM. See Display Memory Interface section for details. Active low output used for writing data to the display memory. This pin is connected to the WE# input of the SRAMs. Active low output to enable reading of data from the display memory. This pin is connected to the OE# input of the SRAMs.
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 25
Table 5-3: LCD Interface Pin Name F00A FPDI-1TM a Type Pin Name Pin # F01A Pin # D00A Pad # Driver Description Panel display data bus. The data format depends on the specific panel connected. For 4-bit single panels, LD3-LD0 are driven low (0 state). Display data shift clock. Data is shifted into the LCD X-drivers on the falling edge of this signal. Display data latch clock. The falling edge of this signal is used to latch a row of display data in the LCD X-drivers and to turn on the Y driver (row driver). For format 1 of 8-bit single color panels this is the second shift clock. WF/ XSCL2 MOD O FPSHIFT2 80 77 97 CO3 For all other modes, this is the LCD backplane BIAS signal. This output toggles once every frame, or as programmed in AUX[05] bits 7-2. Vertical scanning start pulse. A logic `1' on this signal, sampled by the LCD module on the falling edge of LP, is used by the panel Y driver (row driver) to indicate the start of the vertical frame. LCD enable signal output. It can be used externally to turn off the panel supply voltage and backlight.
UD3-UD0 UD3-UD0 O LD3-LD0 UD3-LD0 XSCL FPSHIFT O
70 - 73 67 - 70 86 - 89 CO3S 74 - 77 71 - 74 90 - 93 81 78 100 CO3
LP
FPLINE
O
79
76
96
CO3
YD
FPFRAME O
78
75
94
CO3
LCDENB
a
-----
O
82
79
101
CO2
VESA Flat Panel Display Interface Standard (FPDI-1TM)
Table 5-4: Clock Inputs Pin Name OSC1 Type F00A Pin # 92 F01A Pin # 89 D00A Pad # 115 Driver Description This pin, along with OSC2, is the 2-terminal crystal interface when using a 2-terminal crystal as the clock input. If an external oscillator is used as a clock source, then this pin is the clock input. This pin, along with OSC1, is the 2-terminal crystal interface when using a 2-terminal crystal as the clock input. If an external oscillator is used as a clock source this pin should be left unconnected.
I
*
OSC2
O
93
90
116
*
Table 5-5: Power Supply Pin Name VDD VSS Type P P F00A Pin # 3, 53 2, 52 F01A Pin # 50, 100 49, 99 D00A Pad # 3, 67 1, 65 Driver P P Description Voltage supply Voltage ground
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 26
Epson Research and Development Vancouver Design Center
5.2 Summary of Configuration Options
The S1D13503 requires some configuration information on power-up. This information is provided through the SRAM data lines VD[0...15]. The state of these pins are read on the falling edge of RESET and used to configure the following options: Table 5-6: Summary of Power On / Reset Options Pin Name VD0 VD1 VD2 VD3 value on this pin at falling edge of RESET is used to configure: 1 0 16-bit host bus interface Use direct-mapping for I/O accesses MC68000 MPU interface 8-bit host bus interface Use internal index register for I/O accesses MPU / Bus interface with memory accesses controlled by a READY (WAIT#) signal (1/0)
Swap of high and low data bytes in 16-bit bus No byte swap of high and low data bytes in interface 16-bit bus interface Select I/O mapping address bits [9:1]. These nine bits are latched on power-up and are compared to the MPU address bits [9-1]. A valid I/O cycle combined with a valid address will enable the internal I/O decoder. Therefore, both types of I/O mapping are limited to even address boundaries to determine either the absolute or indexed I/O address of the first register. Note that a "valid I/O cycle" includes IOCS# being toggled low. Select memory mapping address bits [3:1]
VD12-VD4
These three bits are latched on power-up and are compared to the MPU address bits [19-17]. A valid memory cycle combined with a valid address will enable the internal memory decoder. As only the three most significant bits of the address are compared, the maximum amount of VD15-VD13 memory supported is 128K bytes. Note that a "valid memory cycle" includes MEMCS# being toggled low. When using 128K byte memory it must be mapped at an even address such that all 128K bytes is available without a change in state on A17, as this would invalidate the internal compare logic. Note The S1D13503 has internal pulldown resistors on these pins and therefore will be pulled down and read on a logic "0" after RESET. If pullup resistors are required refer to Table 6-3, "Input Specifications," on page 27 for pulldown resistor values. Example: If an ISA bus (no byte swap) with memory segment "A" and I/O location 300h are used, the corresponding settings of VD15-VD0 would be: Table 5-7: I/O and Memory Addressing Example Pin Name VD0 VD1 VD2 VD3 VD12-VD4 VD15-VD13 8-Bit ISA Bus 16-Bit ISA Bus Index Index Direct Mapping Direct Mapping Register Register 0 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 11 0000 000 11 0000 xxx 11 0000 000 11 0000 xxx 101 101 101 101
Where x = don't care; 1 = connected to pull-up resistor; 0 = no pull-up resistor
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 27
6 D.C. CHARACTERISTICS
Table 6-1: Absolute Maximum Ratings Symbol VDD VIN VOUT TSTG TSOL Parameter Supply Voltage Input Voltage Output Voltage Storage Temperature Solder Temperature/Time Rating -0.3 to + 6.0 -0.3 to VDD + 0.5 -0.3 to VDD + 0.5 -65 to 150 260 for 10 sec. max at lead Units V V V C C
Table 6-2: Recommended Operating Conditions Symbol VDD VIN IOPR TOPR PTYP Parameter Supply Voltage Input Voltage Operating Current Operating Temperature Typical Active Power Consumption fOSC = 6 MHz 256 colors fOSC = 6 MHz 256 colors -40 Condition VSS = 0 V Min 2.7 VSS Typ 3.0/3.3/5.0 -4.5/5.0/11 25 13.5/16.5/55 85 Max 5.5 VDD Units V V mA C mW
Table 6-3: Input Specifications Symbol VIL Parameter Low Level Input Voltage Condition VDD = 4.5V VDD = 3.0V VDD = 2.7V VDD = 5.5V VDD = 3.6V VDD = 3.3V VDD = 5.0 VDD = 3.3 VDD = 3.0 VDD = 5.0 VDD = 3.3 VDD = 3.0 VDD = 5.0 VDD = 3.3 VDD = 3.0 -Min Typ Max 0.8 0.4 0.3 Units V
VIH
High Level Input Voltage
2.0 1.3 1.2 2.4 1.4 1.3 0.6 0.5 0.4 0.1 0.1 0.1 -1 1
V
VT+
Positive-going Threshold
V
VT-
Negative-going Threshold
V
VH IIZ
Hysteresis Voltage Input Leakage Current
V A
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 28
Epson Research and Development Vancouver Design Center
Table 6-3: Input Specifications (Continued) Symbol CIN RPD RPD RPD Parameter Input Pin Capacitance Pull Down Resistance Pull Down Resistance Pull Down Resistance Condition f =1 MHz, VDD= 0V VDD = 5.0V VI = VDD VDD = 3.3V VI = VDD VDD = 3.0V VI = VDD Table 6-4: Output Specifications Symbol Parameter Low Level Output Voltage VOL (5.0V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S Low Level Output Voltage VOL (3.3V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S Low Level Output Voltage VOL (3.0V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S High Level Output Voltage VOH (5.0V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S Low Level Output Voltage VOH (3.3V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S High Level Output Voltage VOH (3.0V) Type 1 - TS1D2, CO1 Type 2 - TS2, CO2 Type 3 - TS3, CO3, CO3S IOZ COUT CBID Output Leakage Current Output Pin Capacitance Bidirectional Pin Capacitance Condition VDD = Min IOL = 4 mA IOL = 8 mA IOL = 12 mA VDD = Min IOL = 2 mA IOL = 4 mA IOL = 6 mA VDD = Min IOL = 1.8 mA IOL = 3.5 mA IOL = 5 mA VDD = Min IOH = -4 mA IOH = -8mA IOH = -12 mA VDD = Min IOL = -2 mA IOL = -4 mA IOL = -6 mA VDD = Min IOH = -1.8 mA IOH = -3.5 mA IOH = -5 mA -f =1 MHz, VDD= 0V f =1 MHz, VDD= 0V VDD-0.3 V A pF pF VDD-0.3 V VDD-0.4 V 0.3 V 0.3 V 0.4 V Min Typ Max Units Min Typ Max 12 50 90 100 100 180 200 200 360 400 Units pF k k k
-1
1 12 12
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 29
7 A.C. CHARACTERISTICS
Conditions : VDD = 3.0V 10%, VDD = 3.3V 10%, or VDD = 5.0V 10% TA = -40 C to 85 C Trise and Tfall for all inputs must be < 5 nsec (10% ~ 90%) CL = 80pF (Bus/MPU Interface) CL = 100pF (LCD Panel Interface) CL = 20pF (Display Memory Interface)
7.1 Bus Interface Timing 7.1.1 MC68000 Interface Timing
Note All input timing parameters are based on a maximum 16MHz MPU clock. IOW# Timing
AB[9:1] VALID t2 IOCS#
AS# t1 R/W t4 INVALID Hi-Z t5 t7 DB[15:0] Hi-Z VALID t8 Hi-Z t6 Hi-Z t3
UDS#/LDS#
DTACK#
Figure 10: IOW# Timing (MC68000) Table 7-1: IOW# Timing (MC68000) Symbol Parameter t1 AB[9:1] valid before AS# falling edge t2 AB[9:1] hold from AS# rising edge t3 t4 t5 t6 t7 t8 IOCS# hold from AS# rising edge UDS#/LDS# valid before AS# rising edge UDS#/LDS# falling edge to DTACK# falling edge AS# rising edge to DTACK# hi-z delay DB[15:0] setup to AS# rising edge DB[15:0] hold from AS# rising edge 20 20 3V/3.3V Min Max 10 20 0 30 40 40 10 10 5V Min Max 0 10 0 20 25 25 Units ns ns ns ns ns ns ns ns
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 30
Epson Research and Development Vancouver Design Center
IOR# Timing
AB[9:1] VALID t2b IOCS# t1 AS# t2a
UDS#/LDS#
INVALID
R/W# t3 DTACK# Hi-Z t5 DB[15:0] Hi-Z VALID t7 t6 Hi-Z t4 Hi-Z
Figure 11: IOR# Timing (MC68000) Table 7-2: IOR# Timing (MC68000) Symbol t1 t2 t3 t4 t5 t6 t7 Parameter AB[9:1] and IOCS# valid before AS# falling edge AB[9:1] and IOCS# hold from AS# rising edge AS# falling edge to DTACK# falling edge AS# rising edge to DTACK# hi-z delay AS# falling edge to DB[15:0] valid DB[15:0] hold from AS# rising edge AS# rising edge to DB[15:0] hi-z delay 3V/3.3V Min Max 10 20 40 40 60 20 35 5V Min Max 0 10 25 25 40 15 25 Units ns ns ns ns ns ns ns
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 31
MEMW# Timing
AB[19:1] MEMCS# t1 AS# VALID t2
UDS#/LDS#
INVALID
R/W#
t4 DTACK# Hi-Z t3 t5 DB[15:0] Hi-Z VALID t6
Hi-Z
Hi-Z
Figure 12: MEMW# Timing (MC68000) Table 7-3: MEMW# Timing (MC68000) Symbol t1 t2 t3 t4 t5 t6 Parameter AB[19:1] and MEMCS# valid before AS# falling edge AB[19:1] and MEMCS# hold from AS# rising edge AS# falling edge to DTACK# falling edge AS# rising edge to DTACK hi-z delay AS# falling edge to DB[15:0] valid DB[15:0] hold from AS# rising edge 0 3V/3.3V Min Max 0 0 3.5 * MCLK + 20 40 MCLK -40 0 5V Min 0 0 3.5 * MCLK + 10 25 MCLK -20 Max Units ns ns ns ns ns ns
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (see section 9.2 and 9.3)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 32
Epson Research and Development Vancouver Design Center
MEMR# Timing
AB[19:1] MEMCS# t1 AS# VALID t2
UDS#/LDS#
INVALID
R/W# t4 t3 t5 DB[15:0] Hi-Z VALID t7 t6 Hi-Z
DTACK#
Hi-Z
Hi-Z
Figure 13: MEMR# Timing (MC68000) Table 7-4: MEMR# Timing (MC68000) Symbol t1 t2 t3 t4 t5 t6 t7 Parameter AB[19:1] and MEMCS# valid before AS# falling edge AB[19:1] and MEMCS# hold from AS# rising edge AS# falling edge to DTACK# falling edge AS# rising edge to DTACK# hi-z delay DTACK# falling edge to DB[15:0] valid DB[15:0] hold from AS# rising edge AS# rising edge to DB[15:0] hi-z delay 3V/3.3V Min Max 0 0 3.5 * MCLK + 20 40 20 25 40 5V Min 0 0 3.5 * MCLK + 10 15 15 15 30 Max Units ns ns ns ns ns ns ns
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (see section 9.2 and 9.3)
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 33
7.1.2 Non-MC68000, MPU/Bus With READY (or WAIT#) Signal
IOW# Timing
AB[9:0] BHE# VALID
IOCS# t1 IOW# t3 DB[15:0] Hi-Z VALID t4 Hi-Z t5 t2
Figure 14: IOW# Timing (Non-MC68000) Table 7-5: IOW# Timing (Non-MC68000) Symbol t1 t2 t3 t4 t5 Parameter AB[9:0], BHE# and IOCS# valid before IOW# falling edge AB[9:0], BHE# and IOCS# hold from IOW# rising edge DB[15:0] setup to IOW# rising edge DB[15:0] hold from IOW# rising edge Pulse width of IOW# 3V/3.3V Min Max 10 20 20 20 30 5V Min Max 0 10 10 10 20 Units ns ns ns ns ns
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 34
Epson Research and Development Vancouver Design Center
IOR# Timing
AB[9:0] BHE# VALID
IOCS#
t1 IOR# t3 DB[15:0] Hi-Z VALID
t2
t4 Hi-Z t5
Figure 15: IOR# Timing (Non-MC68000) Table 7-6: IOR# Timing (Non-MC68000) Symbol t1 t2 t3 t4 t5 Parameter AB[9:0], BHE# and IOCS# valid before IOR# falling edge AB[9:0], BHE# and IOCS# hold from IOR# rising edge IOR# falling edge to DB[15:0] valid DB[15:0] hold from IOR# rising edge IOR# rising edge to DB[15:0] hi-z delay 3V/3.3V Min Max 10 20 60 20 35 5V Min Max 0 10 40 15 25 Units ns ns ns ns ns
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 35
MEMW# Timing
AB[19:0] BHE# VALID
t1 MEMCS# t2 MEMW# t3 READY Hi-Z t6 Hi-Z t5 DB[15:0] t4 Hi-Z VALID Hi-Z
Figure 16: MEMW# Timing (Non-MC68000) Table 7-7: MEMW# Timing (Non-MC68000) Symbol t1 t2 t3 t4 t5 t6 Parameter AB[19:0], BHE# and MEMCS# valid before MEMW# falling edge AB[19:0], BHE# and MEMCS# hold from MEMW# rising edge MEMW# falling edge to READY falling edge MEMW# falling edge to DB[15:0] valid DB[15:0] hold from MEMW# rising edge READY negated pulse width 0 3.5* MCLK + 20 3V/3.3V Min Max 0 0 30 MCLK -40 0 3.5* MCLK + 10 5V Min 0 0 20 MCLK -20 Max Units ns ns ns ns ns ns
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (see section 9.2 and 9.3)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 36
Epson Research and Development Vancouver Design Center
MEMR# Timing
AB[19:0] BHE# VALID
t1 MEMCS#
t2
MEMR# t3 READY Hi-Z t7 Hi-Z t6 t5 DB[15:0] Hi-Z t4 VALID Hi-Z
Figure 17: MEMR# Timing (Non-MC68000) Table 7-8: MEMR# Timing (Non-MC68000) Symbol t1 t2 t3 t4 t5 t6 t7 Parameter AB[19:0], BHE# and MEMCS# valid before MEMR# falling edge AB[19:0], BHE# and MEMCS# hold from MEMR# rising edge MEMR# falling edge to READY falling edge READY rising edge to DB[15:0] valid DB[15:0] hold from MEMR# rising edge MEMR# rising edge to DB[15:0] hi-z delay READY negated pulse width 3V/3.3V Min Max 0 0 30 15 20 30 3.5* MCLK + 20 5V Min 0 0 20 10 10 20 3.5* MCLK + 10 Max Units ns ns ns ns ns ns ns
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (See section 9.2 and 9.3.)
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 37
7.2 Clock Input Requirements
Clock Input Waveform
t PWH t
PWL
90% V IH V IL 10%
t
r T OSC
t
f
Figure 18: Clock Input Requirements
Table 7-9: Clock Input Requirements Symbol TOSC tPWH tPWL tf tr Parameter Input Clock Period (CLKI) Input Clock Pulse Width High (CLKI) Input Clock Pulse Width Low (CLKI) Input Clock Fall Time (10% - 90%) Input Clock Rise Time (10% - 90%) Min 40 40% 40% 5 5 60% 60% Typ Max Units ns TOSC TOSC ns ns
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 38
Epson Research and Development Vancouver Design Center
7.2.1 Recommended Clock Input
The nominal frequency must be calculated based on the formulas found in Frame Rate Calculation on page 84. The crystal oscillator must be "fundamental mode" and have the following recommended RC load values: RL = 2M 5% CL = 6.8 pF The figure below demonstrates both a crystal interface and an oscillator interface to the S1D13503. Crystal Interface
92 CL
Oscillator Interface
VCC 92 OUT VCC
S1D13503
RL
X1 S1D13503
GND NC
X1
93 CL
93
Figure 19: Recommended Clock Interface
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 39
7.3 Display Memory Interface Timing 7.3.1 Write Data to Display Memory
VA[15:0] VCS0#, VCS1# VALID t1
VWE#
t2 t4
t3
VOE# t5 VD[15:0] Hi-Z Hi-Z t6 Hi-Z Hi-Z
INPUT
OUTPUT
INPUT
Figure 20: Write Data to Display Memory Table 7-10: Write Data to Display Memory Symbol t1 t2 t3 t4 t5 t6 Parameter Address cycle time VA[15:0], VCS0# and VCS1# valid before VWE# falling edge VA[15:0], VCS0# and VCS1# hold from VWE# rising edge Pulse width of VWE# VD[15:0] setup to VWE# rising edge VD[15:0] hold from VWE# rising edge 3V/3.3V Min Max MCLK - 15 0 0 MCLK - 15 MCLK - 20 0 5V Min MCLK - 10 0 0 MCLK - 10 MCLK - 15 0 Max Units ns ns ns ns ns ns
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (See section 9.2 and 9.3.)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 40
Epson Research and Development Vancouver Design Center
7.3.2 Read Data From Display Memory
VA[15:0] VCS0#, VCS1# VALID t1 t2 VD[15:0] INPUT INPUT t3 INPUT
Figure 21: Read Data From Display Memory Table 7-11: Read Data From Display Memory Symbol t1 t2 t3 Parameter Address cycle time VA[15:0], VCS0# and VCS1# access time VD[15:0] hold time 0 3V/3.3V Min Max MCLK - 15 MCLK - 40 0 5V Min MCLK - 10 MCLK - 25 Max
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which display mode the chip is in. (See section 9.2 and 9.3.)
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 41
7.4 LCD Interface 7.4.1 LCD Interface Timing - 4-Bit Single, 8-Bit Single/Dual Monochrome Panels
S1D13503 outputs t2
YD t3 t1
LP t4
WF
S1D13503 outputs (AUX[01] bit 5 = 0) LP t8 t5 t6a t7a t9 t10
XSCL t11 UD[3:0] LD[3:0] t12
1
2
S1D13503 outputs (AUX[01] bit 5 = 1) LP t7b t6b, t6c t13 t9 t8 t10
XSCL t11 t12
UD[3:0] LD[3:0]
80
1
2
Figure 22: LCD Interface Timing - Monochrome Panel
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 42
Epson Research and Development Vancouver Design Center
Table 7-12: LCD Interface Timing - 4-Bit Single and 8-Bit Single/Dual Monochrome Panel Symbol t1 t1 t2 t2 t3 t3 t4 t5 t6a t6a t6b t6b t6c t6c t7a t7a t7b t7b t8 t8 t9 t9 t10 t10 t11 Parameter LP period (single panel mode) LP period (dual panel mode) YD hold from LP falling edge (AUX[01] bit 5 = 0) YD hold from LP falling edge (AUX[01] bit 5 = 1) LP pulse width (AUX[01] bit 5 = 0) LP pulse width (AUX[01] bit 5 = 1) WF delay from LP falling edge LP setup to XSCL falling edge (AUX[01] bit 5 = 0 and AUX[03] bit 2 = 0) LP hold from XSCL falling edge (AUX[01] bit 5 = 0 and AUX[03] bit 2 = 0) LP hold from XSCL falling edge (AUX[01] bit 5 = 0 and AUX[03] bit 2 = 1) XSCL falling edge to LP falling edge - single panel mode (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 0) XSCL falling edge to LP falling edge - single panel mode (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 1) XSCL falling edge to LP falling edge - dual panel mode (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 0) XSCL falling edge to LP falling edge - dual panel mode (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 1) LP falling edge to XSCL falling edge (AUX[01] bit 5 = 0 and AUX[03] bit 2 = 0) LP falling edge to XSCL falling edge (AUX[01] bit 5 = 0 and AUX[03] bit 2 = 1) LP falling edge to XSCL falling edge (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 0) LP falling edge to XSCL falling edge (AUX[01] bit 5 = 1 and AUX[03] bit 2 = 1) XSCL period (AUX[03] bit 2 = 0) XSCL period (AUX[03] bit 2 = 1) XSCL high width (AUX[03] bit 2 = 0) XSCL high width (AUX[03] bit 2 = 1) XSCL low width (AUX[03] bit 2 = 0) XSCL low width (AUX[03] bit 2 = 1) UD[3:0], LD[3:0] setup to XSCL falling edge (AUX[03] bit 2 = 0) 4-Bit Single Min Max HT + HNDP 10 n/a 8tOSC - 10 13tOSC - 10 6tOSC - 5 5tOSC - 5 0 n/a 2tOSC - 5 tOSC - 5 13tOSC - 5 12tOSC - 5 n/a n/a 2tOSC - 5 tOSC - 5 7tOSC - 5 6tOSC - 5 4tOSC - 5 2tOSC - 5 2tOSC - 5 tOSC - 5 2tOSC - 10 tOSC - 10 2tOSC - 10** 20 8-Bit Single/Dual Min Max Units HT + HNDP ns 10 2(HT + HNDP) ns 10 8tOSC - 10 ns 13tOSC - 10 6tOSC - 5 5tOSC - 5 0 2tOSC - 5 4tOSC - 5 2tOSC - 5 15tOSC - 5 13tOSC - 5 31tOSC - 5 29tOSC - 5 4tOSC - 5 2tOSC - 5 9tOSC - 5 7tOSC - 5 8tOSC - 5 4tOSC - 5 4tOSC - 5 2tOSC - 5 4tOSC - 10 2tOSC - 10 4tOSC - 10** 20 ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 43
Table 7-12: LCD Interface Timing - 4-Bit Single and 8-Bit Single/Dual Monochrome Panel t11 t12 t12 t13 UD[3:0], LD[3:0] setup to XSCL falling edge (AUX[03] bit 2 = 1) UD[3:0], LD[3:0] hold from XSCL falling edge (AUX[03] bit 2 = 0) UD[3:0], LD[3:0] hold from XSCL falling edge (AUX[03] bit 2 = 1) LP falling edge to XSCL rising edge (AUX[01] bit 5 = 1) tOSC - 10** 2tOSC - 10 tOSC - 10 5tOSC - 5 2tOSC - 10** 4tOSC - 10 2tOSC - 10 5tOSC - 5 ns ns ns ns
Where tOSC = 1/fOSC = input (pixel) clock period, where HT = (number of horizontal panel pixels) * tOSC, where HNDP = horizontal non-display period in units of tOSC (see Section 9.3 on page 84 for details). ** -10 ns for 5V operation, - 24 ns for 3.0V and 3.3V operation.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 44
Epson Research and Development Vancouver Design Center
7.4.2 LCD Interface Timing - 4-Bit Single Color Panel
t2
YD t3 t1
LP
t4
WF
LP
t5 t7 t8 t6 t13 t9 t10
XSCL
t11
t12
UD
1
2
3
4
Figure 23: LCD Interface Timing - 4-Bit Single Color Panel
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 45
Table 7-13: LCD Interface Timing - 4-Bit Single Color Panel Symbol t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 LP period YD hold from LP falling edge LP pulse width WF delay from LP falling edge LP setup to XSCL falling edge XSCL falling edge to LP falling edge LP falling edge to XSCL falling edge XSCL period XSCL high width XSCL low width UD setup to XSCL falling edge UD hold from XSCL falling edge LP falling edge to XSCL rising edge Parameter Min HT + HNDP - 10 13tOSC - 10 5tOSC - 5 0 19tOSC - 5 20tOSC - 5 14tOSC - 5 tOSC - 5 0.5tOSC - 5 0.5tOSC - 5 0.5tOSC - 10** 0.5tOSC - 10 13.5tOSC - 10 20 Typ Max Units ns ns ns ns ns ns ns ns ns ns ns ns ns
Where tOSC = 1/fOSC = input (pixel) clock period, where HT = (number of horizontal panel pixels) * tOSC, where HNDP = horizontal non-display period in units of tOSC (see Section 9.3 on page 84 for details). ** 5V operation, for 3.0V and 3.3V operation T11 will be 0.5tOSC - 24.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 46
Epson Research and Development Vancouver Design Center
7.4.3 LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels
t2
YD t3 t1
LP
t4
WF
t5 t7 LP
t6
t13 t9
t8 t10
XSCL
t11
t12
UD/LD
1
2
3
4
Figure 24: LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 47
Table 7-14: LCD Interface Timing - 8-Bit Single Color Panels Format 2/8-Bit Dual Color Panels Symbol t1 t1 t2 t3 t4 t5 t6 t6 t7 t8 t9 t10 t11 t12 t13 Parameter LP period (single panel mode) LP period (dual panel mode) YD hold from LP falling edge LP pulse width WF delay from LP falling edge LP setup to XSCL falling edge XSCL falling edge to LP falling edge (single panel mode) XSCL falling edge to LP falling edge (dual panel mode) LP falling edge to XSCL falling edge XSCL period XSCL high width XSCL low width UD/LD setup to XSCL falling edge UD/LD hold from XSCL falling edge LP falling edge to XSCL rising edge Min HT + HNDP - 10 2(HT + HNDP) - 10 13tOSC - 10 5tOSC - 5 0 19.5tOSC - 5 20tOSC - 5 52tOSC - 5 14.5tOSC - 5 2.5tOSC - 5 tOSC - 5 1.5tOSC - 5 1.5tOSC - 10** tOSC - 5 13.5tOSC - 10 20 Typ Max Units ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Where tOSC = 1/fOSC = input (pixel) clock period, where HT = (number of horizontal panel pixels) * tOSC, where HNDP = horizontal non-display period in units of tOSC (see Section 9.3 on page 84 for details). ** 5V operation, for 3.0V and 3.3V operation T11 will be 1.5tOSC - 24.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 48
Epson Research and Development Vancouver Design Center
7.4.4 LCD Interface Timing - 16-Bit Single/Dual Color Panels
t2
YD t3 t1
LP
t4
WF
LP
t5 t7 t8 t6 t13 t9 t10
XSCL
t11
t12
t14
t15
UD/LD
1
2
3
4
Figure 25: LCD Interface Timing - 16-Bit Single/Dual Color Panels
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center Table 7-15: LCD Interface Timing - 16-Bit Single/Dual Color Panels Symbol t1 t1 t2 t3 t4 t5 t6 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 Parameter LP period (single panel mode) LP period (dual panel mode) YD hold from LP falling edge LP pulse width WF delay from LP falling edge LP setup to XSCL falling edge XSCL falling edge to LP falling edge (single panel mode) XSCL falling edge to LP falling edge (dual panel mode) LP falling edge to XSCL falling edge XSCL period XSCL high width XSCL low width UD/LD setup to XSCL falling edge UD/LD hold from XSCL falling edge LP falling edge to XSCL rising edge UD/LD setup to XSCL rising edge UD/LD hold from XSCL rising edge Min HT + HNDP - 10 2(HT + HNDP) - 10 13tOSC - 10 5tOSC - 5 0 22tOSC - 5 20tOSC - 5 52tOSC - 5 17tOSC - 5 5tOSC - 5 2tOSC - 5 3tOSC - 10 1.5tOSC - 10** tOSC - 5 15tOSC - 10 1.5tOSC - 10 0.5tOSC - 5 20 Typ Max
Page 49
Units ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Where tOSC = 1/fOSC = input (pixel) clock period, where HT = (number of horizontal panel pixels) * tOSC, where HNDP = horizontal non-display period in units of tOSC (see Section 9.3 on page 84 for details). ** 5V operation, for 3.0V and 3.3V operation T11 will be 1.5tOSC - 24.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 50
Epson Research and Development Vancouver Design Center
7.4.5 LCD Interface Timing - 8-Bit Single Color Panels Format 1
t2
YD t3 t1
LP
t6a t6b t7a t7b t14b LP t8b
t9b t11b t10b
XSCL2 (WF) t9a t8a t14a XSCL t11a t10a
t12b
t13b
t12a
t13a
UD/LD
1
2
3
Figure 26: LCD Interface Timing - 8-Bit Single Color Panels Format 1
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 51
Table 7-16: LCD Interface Timing - 8-Bit Single Color Panels Format 1 Symbol t1 t2 t3 t6a t6b t7a t7b t8a t8b t9a t9b t10a t10b t11a t11b t12a t12b t13a t13b t14a t14b LP period YD hold from LP falling edge LP pulse width LP setup to XSCL falling edge LP setup to XSCL2 falling edge XSCL falling edge to LP falling edge XSCL2 falling edge to LP falling edge LP falling edge to XSCL falling edge LP falling edge to XSCL2 falling edge XSCL period XSCL2 period XSCL high width XSCL2 high width XSCL low width XSCL2 low width UD/LD setup to XSCL falling edge UD/LD setup to XSCL2 falling edge UD/LD hold from XSCL falling edge UD/LD hold from XSCL2 falling edge LP falling edge to XSCL rising edge LP falling edge to XSCL2 rising edge Parameter Min HT + HNDP - 10 13tOSC - 10 5tOSC - 5 22tOSC - 5 19.5tOSC - 5 20tOSC - 5 23.5tOSC - 5 17tOSC - 5 14.5tOSC - 5 4tOSC - 5 4tOSC - 5 tOSC - 5 tOSC - 5 3tOSC - 10 3tOSC - 10 1.5tOSC - 10** 1.5tOSC - 10** tOSC - 5 tOSC - 5 16tOSC - 10 13.5tOSC - 10 Typ Max Units ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Where tOSC = 1/fOSC = input (pixel) clock period, where HT = (number of horizontal panel pixels) * tOSC, where HNDP = horizontal non-display period in units of tOSC (see Section 9.3 on page 84 for details). ** 5V operation, for 3.0V and 3.3V operation T12 will be 1.5tOSC - 24.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 52
Epson Research and Development Vancouver Design Center
7.4.6 LCD Interface Options
LP : 240 PULSES
LP: 4 PULSES
YD LP WF UD[3:0]
LINE1 LINE2 LINE3 LINE4 LINE239 LINE240 LINE1 LINE2
LP WF XSCL: 80 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0
1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-317 1-318 1-319 1-320
Example Timing for a 320x240 single panel
Figure 27: 4-Bit Single Monochrome Panel Timing
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 53
LP : 480 PULSES
LP: 4 PULSES
YD LP WF UD[3:0], LD[3:0]
LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 LINE1 LINE2
LP WF XSCL:80 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-9 1-10 1-11 1-12 1-13 1-14 1-15 1-16 1-633 1-634 1-635 1-636 1-637 1-638 1-639 1-640
Example timing for a 640x480 panel
Figure 28: 8-Bit Single Monochrome Panel Timing
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 54
Epson Research and Development Vancouver Design Center
LP : 240 PULSES
LP: 2 PULSES
YD LP WF UD[3:0], LD[3:0]
LINE1/241 LINE2/242 LINE3/243 LINE4/244
LINE 239/479 LINE240/480
LINE1/241
LINE2/242
LP WF XSCL: 160 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0 1-1 1-2
1-3 1-4 241-1 241-2 241-3 241-4
1-5 1-6
1-7 1-8 241-5 241-6 241-7 241-8
1-637 1-638
1-639 1-640 241-637 241-638 241-639 241-640
Example timing for a 640x480 panel
Figure 29: 8-Bit Dual Monochrome Panel Timing
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 55
LP : 240 PULSES
LP: 4 PULSES
YD LP
WF
UD[3:0]
LINE1
LINE2
LINE3
LINE4
LINE239
LINE240
LINE1
LINE2
LP WF XSCL: 240 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0 Example timing for a 320x240 panel
1-R1 1-G1 1-B1 1-R2 1-G2 1-B2 1-R3 1-G3 1-B3 1-R4 1-G4 1-B4 1-B319 1-R320 1-G320 1-B320
Figure 30: 4-Bit Single Color Panel Timing
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 56
Epson Research and Development Vancouver Design Center
LP: 480 PULSES
LP: 4 PULSES
YD LP UD[3:0] LD[3:0]
LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 LINE1 LINE2
LP XSCL2: 120 CLOCK PERIODS XSCL2 XSCL: 120 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-R1 1-B1 1-G2 1-R3 1-B3 1-G4 1-R5 1-B5 1-G1 1-R2 1-B2 1-G3 1-R4 1-B4 1-G5 1-R6 1-G6 1-R7 1-B7 1-G8 1-R9 1-B9 1-G10 1-R11 1-B6 1-G7 1-R8 1-B8 1-G9 1-R10 1-B10 1-G11 1-B11 1-G12 1-R13 1-B13 1-G14 1-R15 1-B15 1-G16 1-R12 1-B12 1-G13 1-R14 1-B14 1-G15 1-R16 1-B16 1-B635 1-G636 1-R637 1-B637 1-G638 1-R639 1-B639 1-G640 1-R636 1-B636 1-G637 1-R638 1-B638 1-G639 1-R640 1-B640
Example timing for a 640x480 panel
Figure 31: 8-Bit Single Color Panel Timing - Format 1 : AUX[03] Bit 3 = 0 and AUX[01] Bit 2 = 1
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 57
LP : 240 PULSES
LP: 4 PULSES
YD LP
WF UD[3:0] LD[3:0]
LINE1
LINE2
LINE3
LINE4
LINE239
LINE240
LINE1
LINE2
LP WF XSCL: 120 CLOCK PERIODS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-R1 1-G1 1-B1 1-R2 1-G2 1-B2 1-R3 1-G3 1-B3 1-R4 1-G4 1-B4 1-R5 1-G5 1-B5 1-R6 1-G6 1-B6 1-R7 1-G7 1-B7 1-R8 1-G8 1-B8 1-G318 1-B318 1-R319 1-G319 1-B319 1-R320 1-G320 1-B320
Example timing for a 320x240 panel
Figure 32: 8-Bit Single Color Panel Timing - Format 2 : AUX[03] Bit 3 = 1 and AUX[01] Bit 2 = 1
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 58
Epson Research and Development Vancouver Design Center
LP: 240 PULSES YD LP
WF
LP: 2 PULSES
UD[3:0] LD[3:0]
LINE1
LINE2
LINE3 LINE243
LINE4 LINE244
LINE239 LINE479
LINE240 LINE480
LINE1
LINE2
LINE241 LINE242
LINE241 LINE242
LP
WF
XSCL: 480 CLOCK PERIODS XSCL
UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-R1 1-G1 1-B1 1-R2 241-R1 241-G1 241-B1 241-R2
1-G2 1-B2 1-R3 1-G3 241-G2 241-B2 241-R3 241-G3
1-B3 1-R4 1-G4 1-B4 241-B3 241-R4 241-G4 241-B4
1-R637 1-G637 1-B637 1-R638
1-G638 1-B638 1-R639 1-G639
1-B639 1-R640 1-G640 1-B640
241-R637 241-G638 241-B639 241-G637 241-B638 241-R640 241-B637 241-R639 241-G640 241-R638 241-G639 241-B640
Example timing for a 640x480 panel
Figure 33: 8-Bit Dual Color Panel Timing
UD[3:0] LD [3:0] UD[3:0] LD [3:0] FROM S1D13503 XSCL CK D Q UD[7:4] LD [7:4]
TO 16-BIT PANEL
Figure 34: External Circuit Required for 16-Bit Panel
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 59
LP : 480 PULSES
LP: 4 PULSES
YD LP WF Pixel Data
LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 LINE1 LINE2
LP S1D13503 OUTPUTS WF XSCL: 120 CLOCKS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-R1 1-B1 1-G2 1-R3 1-B3 1-G4 1-R5 1-B5 1-B635 1-G638 1-G636 1-R639 1-R637 1-B639 1-B637 1-G640
1-G1 1-R2 1-B2 1-G3
1-R4 1-B4 1-G5 1-R6
1-R636 1-B638 1-B636 1-G639 1-G637 1-R640 1-R638 1-B640
UD7 UD6 UD5 UD4 UD3 16-BIT PANEL INPUTS UD2 UD1 UD0
1-R1 1-B1 1-G2 1-R3
1-B635 1-G636 1-R637 1-B637
1-B3 1-G4 1-R5 1-B5
1-G638 1-R639 1-B 639 1-G640
LD7 LD6 LD5 LD4 LD3 LD2 LD1 LD0 Example timing for a 640x480 panel
1-G1 1-R2 1-B2 1-G3
1-R636 1-B636 1-G637 1-R638
1-R4 1-B4 1-G5 1-R6
1-B638 1-G639 1-R640 1-B640
Figure 35: 16-Bit Single Color Panel Timing with External Circuit
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 60
Epson Research and Development Vancouver Design Center
LP : 240 PULSES YD LP WF Pixel Data
LINE1/241 LINE2/242 LINE3/243 LINE4/244 LINE239/479 LINE240/480
LP: 2 PULSES
LINE1/241
LINE2/242
LP S1D13503 OUTPUTS WF XSCL: 240 CLOCKS XSCL UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0
1-R1 1-G1 1-B1 1-R2 1-G2 1-B2 1-R3 1-G3 1-B3 1-R4 1-G4 1-B4 1-G638 1-B639 1-B638 1-R640 1-R639 1-G640 1-G639 1-B640
241-R1 241-G2 241-B3 241-G1 241-B2 241-R4 241-B1 241-R3 241-B4 241-R 2 241-G3 241-B4
241G638 241B638 241R639 241G639
241B639 241R640 241G640 241B640
UD7 UD6 UD5 UD4 UD3 UD2 16-BIT PANEL INPUTS UD1 UD0
1-R1 1-G1 1-B1 1-R2
1-G638 1-B638 1-R639 1-G639
1-G2 1-B2 1-R3 1-G3
1-B 639 1-R640 1-G640 1-B640
LD7 LD6 LD5 LD4 LD3 LD2 LD1 LD0 Example timing for a 640x480 panel
241-R1 241-G1 241-B1 241-R2
241-G638 241-B638 241-R639 241-G639
241-G2 241-B2 241-R3 241-G3
241B639 241R640 241G640 241B640
Figure 36: 16-Bit Dual Color Panel Timing with External Circuit
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 61
8 HARDWARE REGISTER INTERFACE
The S1D13503 is configured and controlled via 16 internal 8-bit registers. There are two ways to map these registers into the system I/O space. 1. Direct-mapping: Absolute I/O address = system address lines AB[3:0] + base I/O mapped address (where base I/O address is selected by VD7-VD12, see Table 5-6) This scheme requires 16 sequential I/O addresses starting from the I/O mapped base address selected by VD7-VD12 (see Table 5-6). To perform an I/O access: write data IOW {absolute I/O address}, {data} read data IOR {absolute I/O address} 2. Indexing: I/O address = internal index register bits [3:0] This scheme requires 2 sequential I/O addresses starting from the base address selected by VD4-VD12 (see Table 5-6). To perform an 8-bit I/O access: write index IOW {I/O mapped address}, {index} then write data IOW {I/O mapped address +1}, {data} or read data IOR {I/O mapped address +1}
; write the index of the register to be accessed ; write data to the indexed register ; read the indexed register
To perform a 16-bit I/O access: write data IOW {I/O mapped address}, {index,data} ; write the index and data of the register to be accessed read data IOW {I/O mapped address}, {index} IOR {I/O mapped address +1} ; write to the indexed register ; read the indexed register
8.1 Register Descriptions
AUX[00] Test Register I/O address = 0000b, Read/Write Test Mode Enable bit 7 Reserved Test Input Select Bit 2 Test Input Select Bit 1 Test Input Select Bit 0 Test Output Select Bit 2 Test Output Select Bit 1 Test Output Select Bit 0
Test Mode Enable When this bit = 0 normal operation is enabled. When this bit = 1 the chip is placed in a special test mode. The test input bits and test output bits (bits 6:0) are used to select various internal test functions. Reserved During normal operation this bit must = 0. Test Mode Input and Output Bits [2:0] When bit 7 = 1 these are the Test Input Select Input and Output bits. When bits 6 and 7 = 0 (normal operation) these bits may be used as read/write scratch registers.
bit 6 bits 5-0
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 62
Epson Research and Development Vancouver Design Center
AUX[01] Mode Register 0 I/O address = 0001b, Read/Write. DISP bit 7 Panel Mask XSCL LCDE Gray Shade / LCD Data Color Width Bit 0 Memory Interface RAMS
DISP This bit selects display on or off. When this bit = 0, Display OFF is selected (LD0-3 and UD0-3 are forced to 0 ). When this bit = 1, Display ON is selected. This bit goes low on RESET. Panel This bit selects the LCD panel configuration (single or dual). When this bit = 0, Single LCD panel drive is selected. When this bit = 1 Dual LCD panel drive is selected. This bit goes low on RESET. Mask XSCL XSCL is automatically masked during the horizontal non-display period if any of the following criteria is met: * AUX[0C] value is greater than 00h. * Color panel is selected. * This bit (AUX[01] bit 5) = 1.
bit 6
bit 5
. bit 4
XSCL will not be masked during the horizontal non-display period if color panel is not selected, AUX[0C] = 00h and this bit = 0. LCDE The state of this pin determines the state of output pin 82, LCDENB, and is intended for control of an external LCDBIAS power supply. However, this pin can be used as a general I/O pin if desired. When LCDE = 0, LCDENB is forced low. When LCDE = 1, LCDENB is forced high. LCDE goes low on RESET. Gray Shade/Color In gray shade display modes, this bit selects between 16-level or 4-level gray shade display. When this bit = 1, 16 gray shades are displayed (4 bits/pixel). When this bit = 0, 4 gray shades of a possible 16 are displayed (2 bits/pixel). In color display modes, this bit selects between 16 color or 4 color display. When this bit = 1, 16 colors are displayed out of a possible of 4096 colors (4 bits/pixel). When this bit = 0, 4 colors are displayed out of a possible of 4096 colors (2 bits/pixel). This bit is ignored when either black-and-white (BW) or 256 color mode is selected (AUX[03] bit 2 = 1). This bit goes low on RESET. Table 8-1: Gray Shade/Color Mode Selection Display Modes 256 Colors 16 Colors 4 Colors 16 Grays 4 Grays BW Gray Shade/ Color
AUX[01] bit 3
bit 3
BW/ 256 Colors
AUX[03] bit 2
Color Mode
AUX[03] bit 1
don't care 1 0 1 0 don't care
1 0 0 0 0 1
1 1 1 0 0 0
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 63
bit 2
LCD Data Width Bit 0 Together with LCD Data Width bit 1 (AUX[03] bit 3) this bit selects different display data formats. The following table shows the function of these two bits: Table 8-2: LCD Data Width Panel Monochrome Monochrome Color Color Color Color LCD Data LCD Data Width Bit 1 Width Bit 0
AUX[03] bit 3 AUX[01] bit 2
Function 4-bit LCD data width 8-bit LCD data width 4-bit LCD data width 8-bit LCD data width - format 1 16-bit LCD data width (with external circuit) 8-bit LCD data width - format 2
don't care don't care 0 0 1 1
0 1 0 1 0 1
For 8-bit dual panels, the data transfer width is forced to 4 bits per panel. This bit goes low on RESET. bit 1 Memory Interface This bit selects between the 8-bit or 16-bit memory interface. When this bit = 0, the 16-bit memory interface is selected. When this bit = 1, the 8-bit memory interface is selected. If 16-bit bus interface (VD0 = 1 on RESET) or 256 color mode (AUX[03] bits 2-1 = 11) is selected, the Memory Interface bit is forced to 0 internally (16-bit). This bit goes low on RESET. RAMS This bit configures the display memory address lines for an 8-bit memory interface system. When this bit = 0, addressing for 8Kx8 SRAM on an 8-bit display memory data bus interface is selected. When this bit = 1, addressing for 32Kx8 SRAM on an 8-bit display memory data bus interface is selected. This bit goes low on RESET. This bit is ignored for a 16-bit memory interface.
bit 0
AUX[02] Line Byte Count Register (LSB) I/O address = 0010b, Read/Write. Line Byte Count Bit 7 bits 7-0 Line Byte Count Bit 6 Line Byte Count Bit 5 Line Byte Count Bit 4 Line Byte Count Bit 3 Line Byte Count Bit 2 Line Byte Count Bit 1 Line Byte Count Bit 0
Line Byte Count Bits [7:0] Along with Line Byte Count Bit 8 (AUX[03] bit 0), this is the number of bytes to be fetched per display line minus 1. To calculate the Line Byte Count use the following formula:
BitsPerPixel LineByteCount ( Decimal ) = -------------------------------------------------------------- x HorizontalResolution - 1 MemoryInterfaceWidth
Example: To calculate the Line Byte Count for 640 horizontal pixels with 16 gray shades (4 bits-per-pixel) and 16-bit memory interface:
4BitsPerPixel LineByteCount ( Decimal ) = ------------------------------------ x 640 - 1 = 159 16Bits
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 64
Epson Research and Development Vancouver Design Center
The following two tables summarize the maximum value of the Line Byte Count Register for different display modes and display memory interface. Table 8-3: Maximum Value of Line Byte Count Register - 8-Bit Display Memory Interface Display Modes black-and-white (BW) 4-level gray shade / 4 colors 16-level gray shade / 16 colors Maximum Value of Line Byte Count Register 0FFh 0FFh 1FFh Corresponding Maximum Number of Pixels in One Display Line 256 x 8 = 2048 256 x 4 = 1024 512 x 2 = 1024
Table 8-4: Maximum Value of Line Byte Count Register - 16-Bit Display Memory Interface Display Modes black-and-white (BW) 4-level gray shade / 4 colors 16-level gray shade / 16 colors 256 colors Maximum Value of Line Byte Count Register 0FFh 0FFh 0FFh 1FFh Corresponding Maximum Number of Pixels in One Display Line 256 x 16 = 4096 256 x 8 = 2048 256 x 4 = 1024 512 x 2 = 1024
AUX[03] Mode Register 1 I/O address = 0011b, Read/Write PS Bit 1 bits 7-6 PS Bit 0 LCD Signal LUT State Bypass LCD Data Width Bit 1 BW / 256 colors Color Mode Line Byte Count Bit 8
PS Bits [1:0] Selects the Power Save Modes as shown in the following table. The PS bits [1:0] go low on RESET. Table 8-5: Power Save Mode Selection PS1 0 0 1 1 PS0 0 1 0 1 Mode Activated Normal Operation Power Save Mode 1 Power Save Mode 2 Reserved
Refer to Power Save Modes on page 77 for a complete Power Save Mode description. bit 5 LCD Signal State When this bit = 0, all LCD interface signals are forced low during Power Save modes. When this bit = 1, all LCD interface signals are forced to a high impedance (Hi-Z) state during Power Save modes. This bit goes low on RESET. LUT Bypass When the LUT Bypass bit = 0, the Look-Up Table is used for display data output in gray shade modes. When this bit = 1, the Look-Up Table is bypassed for display data output in gray shade modes (for power save purposes). There is no effect on changing this bit in BW and color modes. In BW display mode, the Look-Up Table is always bypassed and in color display mode the Look-Up Table cannot be bypassed. The LUT Bypass bit goes low on RESET.
bit 4
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 65
bit 3
LCD Data Width Bit 1 Together with LCD Data Width bit 0 (AUX[01] bit 2), this bit selects different display data formats. See Table 8-2, "LCD Data Width," on page 63 for details. This bit goes low on RESET. BW / 256 colors In BW/gray shade display modes, when this bit = 1, black-and-white (BW) mode is selected. When this bit = 0, either 4-level gray shade mode or 16-level gray shade mode is selected. In color display modes, when this bit = 1, 256 color mode is selected. When this bit = 0, either 4 color mode or 16 color mode is selected. See Table 8-1, "Gray Shade/Color Mode Selection," on page 62 for details. This bit goes low on RESET. Color Mode When this bit = 1, color display modes are selected. When bit = 0, BW/gray shade display modes are selected. See Table 8-1, "Gray Shade/Color Mode Selection," on page 62 for details. This bit goes low on RESET. Line Byte Count Bit 8 This is the MSB of the number of bytes to be fetched per display line minus 1 (see AUX[02]). This bit only has effect when in either 16 colors/gray shades with 8-bit memory interface or 256 colors with 16-bit memory interface.
bit 2
bit 1
bit 0
. AUX[04] Total Display Line Count Register (LSB) (Vertical Total) I/O address = 0100b, Read/Write. Total Disp. Line Count Bit 7 bits 7-0 Total Disp. Line Count Bit 6 Total Disp. Line Count Bit 5 Total Disp. Line Count Bit 4 Total Disp. Line Count Bit 3 Total Disp. Line Count Bit 2 Total Disp. Line Count Bit 1 Total Disp. Line Count Bit 0
Total Display Line Count Bits [7:0] These are the 8 LSB of the 10 bit Total Display Line Count and represent the number of scan lines -1, to a maximum value of 3FFh or 1024 scan lines. In single panel mode:
TotalDisplayLineCount = NumberOfDisplayLines - 1
In dual panel mode:
NumberOfDisplayLines TotalDisplayLineCount = --------------------------------------------------------------- - 1 2
Note that the value programmed partially determines the frame period, and hence affects display duty cycle. Bits 8 and 9 are located in the following register (AUX[05]).
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 66
Epson Research and Development Vancouver Design Center
. AUX[05] Total Display Line Count (MSB) and WF Count Register I/O address = 0101b, Read/Write WF Count Bit 5 bits 7-2 WF Count Bit 4 WF Count Bit 3 WF Count Bit 2 WF Count Bit 1 WF Count Bit 0 Total Disp. Line Count Bit 9 Total Disp. Line Count Bit 8
WF Count Bits [5:0] These bits are used to adjust the WF output signal period. The binary value stored in these bits represents the number of LP pulses -1 between toggles of the WF output. The power up reset value of these bits is 0, which causes the WF output to toggle every frame. When values of 01h to 3Fh are programmed into these bits, the results are WF toggling every 1+n LP pulses, where n is the value programmed. These bits have no effect when 8-bit single color panel format 1 is selected. Total Display Line Count Bits [9:8] These bits are the two MSB of the Total Display Line Count Register (AUX[04]).
bits 1-0
AUX[06] Screen 1 Display Start Address Register (LSB) I/O address = 0110b, Read/Write. Screen 1 Display Start Addr Bit 7 Screen 1 Display Start Addr Bit 6 Screen 1 Display Start Addr Bit 5 Screen 1 Display Start Addr Bit 4 Screen 1 Display Start Addr Bit 3 Screen 1 Display Start Addr Bit 2 Screen 1 Display Start Addr Bit 1 Screen 1 Display Start Addr Bit 0
AUX[07] Screen 1 Display Start Address Register (MSB) I/O address = 0111b, Read/Write. Screen 1 Display Start Addr Bit 15 Screen 1 Display Start Addr Bit 14 Screen 1 Display Start Addr Bit 13 Screen 1 Display Start Addr Bit 12 Screen 1 Display Start Addr Bit 11 Screen 1 Display Start Addr Bit 10 Screen 1 Display Start Addr Bit 9 Screen 1 Display Start Addr Bit 8
AUX[06] bits 7-0 Screen 1 Display Start Address Bits [15:0] AUX[07] bits 7-0 These 16 bits determine the Screen 1 Display Start Address. In an 8-bit memory configuration these bits set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most significant bits of a 17-bit start address (i.e., word access). The Screen 1 Display Start Address is the memory address corresponding to the first displayed pixel (top left corner). In a dual panel configuration, screen 1 refers to the upper half of the display. While in a single panel configuration, screen 1 refers to the first screen of the Split Screen Display feature where two different images (screen 1 and screen 2) can be displayed at the same time on one display.
Note The absolute address into display memory is determined by the Memory Mapping Address which is set by VD13 - VD15 (see Table 5-6, "Summary of Power On / Reset Options," on page 26).
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 67
AUX[08] Screen 2 Display Start Address Register (LSB) I/O address = 1000b, Read/Write. Screen 2 Display Start Addr Bit 7 Screen 2 Display Start Addr Bit 6 Screen 2 Display Start Addr Bit 5 Screen 2 Display Start Addr Bit 4 Screen 2 Display Start Addr Bit 3 Screen 2 Display Start Addr Bit 2 Screen 2 Display Start Addr Bit 1 Screen 2 Display Start Addr Bit 0
AUX[09] Screen 2 Display Start Address Register (MSB) I/O address = 1001b, Read/Write. Screen 2 Display Start Addr Bit 15 Screen 2 Display Start Addr Bit 14 Screen 2 Display Start Addr Bit 13 Screen 2 Display Start Addr Bit 12 Screen 2 Display Start Addr Bit 11 Screen 2 Display Start Addr Bit 10 Screen 2 Display Start Addr Bit 9 Screen 2 Display Start Addr Bit 8
AUX[08] bits 7-0 Screen 2 Display Start Address Bits [15:0] AUX[09] bits 7-0 These 16 bits determine the Screen 2 Display Start Address. In an 8-bit memory configuration these bits set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most significant bits of a 17-bit start address (i.e., word access). In a dual panel configuration, screen 2 refers to the lower half of the display. The Screen 2 Display Start Address is the memory address corresponding to the first displayed pixel in the first line of the lower half of the display. If screen 2 is started right after screen 1, the screen 2 display start address can be calculated with the following formula:
( ImageHorizontalResolution ) x ( ImageVerticalResolution ) x ( BytesPerPixel ) Screen2DisplayStartAddress ( hex ) = ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Screen1DisplayStartAddress MemoryInterfaceWidth 2 x ---------------------------------------------------------------- 8
In a single panel configuration, screen 2 refers to the second screen of the Split Screen Display Feature where two different images (screen 1 and screen 2) can be displayed at the same time on one display. The Screen 2 Display Start Address is the memory address corresponding to the first pixel of the second image stored in display memory. To display screen 2 refer to AUX[0A] Screen 1 Display Line Count Register (LSB) on page 68.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 68
Epson Research and Development Vancouver Design Center
AUX[0A] Screen 1 Display Line Count Register (LSB) I/O address = 1010b, Read/Write. Screen 1 Display Line Count Bit 7 Screen 1 Display Line Count Bit 6 Screen 1 Display Line Count Bit 5 Screen 1 Display Line Count Bit 4 Screen 1 Display Line Count Bit 3 Screen 1 Display Line Count Bit 2 Screen 1 Display Line Count Bit 1 Screen 1 Display Line Count Bit 0
AUX[0B] Screen 1 Display Line Count Register (MSB) I/O address = 1011b, Read/Write. Screen 1 Display Line Count Bit 9 Screen 1 Display Line Count Bit 8
n/a
n/a
n/a
n/a
n/a
n/a
AUX[0A] bits 7-0 Screen 1 Display Line Count Bits [9:0] AUX[0B] bits 1-0 These bits are the eight LSB of a 10-bit value used to determine the number of lines displayed for screen 1. The remaining lines will automatically display from the screen 2 display start address. The 10-bit value programmed is the number of display lines -1. This register is used to enable the split screen display feature (single panel only) where two different images can be displayed at the same time on one display. For example; AUX[0A] = 20h for a 320x240 display system. The display will display 20h+1 = 33 lines on the upper part of the screen as dictated by the screen 1 display start address registers (AUX[06] and AUX[07]), and 240 - 33 = 207 lines will be displayed on the lower part of the screen as dictated by the screen 2 display start address registers (AUX[08] and AUX[09]). Two different images can be displayed when using a dual panel configuration by changing the screen 2 display start address. However, by using this method screen 2 is limited to the lower half of the display. This register is ignored in dual panel mode.
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 69
AUX[0C] Horizontal Non-Display Period I/O address = 1100b, Read/Write. Horizontal NonDisplay Period Bit 7 bits 7-0 Horizontal NonDisplay Period Bit 6 Horizontal NonDisplay Period Bit 5 Horizontal NonDisplay Period Bit 4 Horizontal NonDisplay Period Bit 3 Horizontal NonDisplay Period Bit 2 Horizontal NonDisplay Period Bit 1 Horizontal NonDisplay Period Bit 0
Horizontal Non-Display Period Bits [7:0] These bits are used to adjust the horizontal non-display period (See "Frame Rate Calculation" on page 84 for details). When these bits = 0, the fixed default non-display period (DHNDP) is used. Otherwise, a non-display period of DHNDP & AUX[0C] +1 is used. The unit of AUX[0C] is the same as the unit of Line Byte Count Register, i.e. number of bytes to be fetched. See description of AUX[02] and Section 9.3 on page 84 for details. For example, if an additional 32 pixels wide of horizontal non-display period is desired in a 4 grays (2 bits-per-pixel) and 16-bit display memory interface system: AUX[0C] = [32 / (16 / 2)] - 1 = 3. Note that the value programmed determines the period of one line, and hence affects the frame period.
AUX[0D] Address Pitch Adjustment Register I/O address = 1101b, Read/Write. Addr Pitch Adjustment Bit 7 bits 7-0 Addr Pitch Adjustment Bit 6 Addr Pitch Adjustment Bit 5 Addr Pitch Adjustment Bit 4 Addr Pitch Adjustment Bit 3 Addr Pitch Adjustment Bit 2 Addr Pitch Adjustment Bit 1 Addr Pitch Adjustment Bit 0
Address Pitch Adjustment Bits [7:0] This register controls the virtual display by setting the numerical difference between the last address of a display line, and the first address in the following line. If the Address Pitch Adjustment is not equal to zero, then a virtual screen is formed. The size of the virtual screen is only limited by the available display memory. The actual display output is a window that is part of the whole image stored in the display memory. For example, with 128K of display memory, a 640x400 16-gray image can be stored. If the output display size is 320x240, then the whole image can be seen by changing display starting addresses through AUX[06] and [07], and AUX[08] and [09]. Note that a virtual screen can be produced on either a single or dual panel. In 8-bit memory interface, if the Address Pitch Adjustment is not equal to zero, a virtual screen with a line length of (Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents of a window (Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined by AUX[06] and [07], and AUX[08] and [09]. In 16-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with a line length of 2x(Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents of a window 2x(Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined by AUX[06] and [07], and AUX[08] and [09].
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 70
Epson Research and Development Vancouver Design Center
. AUX[0E] Look-Up Table Address Register I/O address = 1110b, Read/Write ID Bit / Green Bank Green Bank RGB Index Bit 1 Bit 0 Bit 1 ID Bit / RGB Index Bit 0 Palette Address Bit 3 Palette Address Bit 2 Palette Address Bit 1 Palette Address Bit 0
The S1D13503 has three internal 16 position, 4-bit wide Look-Up Tables (palettes). The 4-bit value programmed into each table position determines the output gray shade / color weighting of display data. These tables are bypassed in black-andwhite (BW) display mode. These three 16 position Look-Up Tables can be arranged in many different configurations to accommodate all the gray shade / color display modes. Refer to Look-Up Table Architecture on page 72 for formats. bits 7-6 Green Bank Bits [1:0] In 4-level gray / color display modes (2-bits/pixel), the 16 position Green palette is arranged into four, 4 position "banks". These two bits control which bank is currently selected. These bits have no effect in 16level gray / color display modes (4-bits/pixel). In 256 color display modes (8-bit/pixel), the 16 position Green palette is arranged into two, 8 position "banks" for the display of "green" colors. Only bit 0 of these two bits controls which bank is currently selected. bits 5-4 ID Bit / RGB Index Bits [1:0] These bits have dual purpose; ID Bits: After power on or hardware reset, these bits can be read to identify the S1D13503. These same bits are used to identify the pin compatible S1D13502 and would only be used in system implementations where common software is being used. As these bits are R/W they must be read before being written in order to be used as ID bits. Table 8-6: ID Bit Usage Chip S1D13503 F352 S1D13502 S1D13502 Aux[0E] bit 5 0 0 1 1 bit 4 0 1 0 1
Power On or RESET
RGB Index bits [1:0]: These bits are also used to provide access to the three internal Look-Up Tables (RGB). Table 8-7: Look-Up Table Access Aux[0E] bit 5 bit 4 0 0 0 1 1 0 1 1 Look-Up Table Access Auto-increment (see Note 1) Red palette R/W access Green palette R/W access Blue palette R/W access
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 71
Note When auto-increment is selected, an internal pointer will default to the Red palette on power on reset. Each read/write access to Aux[0F] will increment the counter to point to the next palette in order (RGB). Whenever the Look-Up Table Address register Aux[0E] is written, the RGB Index will reset the pointer to the Red palette. This provides a efficient method for sequential writing of RGB data. bits 3-0 Palette Address Bits [3:0] These 4 bits provide a pointer into the 16 position Look-Up Table currently selected for CPU R/W access.
Note The Look-Up Table configuration (e.g. 1/2/4 banks) does not affect the R/W access from the CPU as all 16 positions can be accessed sequentially.
AUX[0F] Look-Up Table Data Register I/O address = 1111b, Read/Write. Red Bank Bit 1 bit 7-6 Red Bank Bit 0 Blue Bank Bit 1 Blue Bank Bit 0 Palette Data Palette Data Palette Data Palette Data Bit 3 Bit 2 Bit 1 Bit 0
Red Bank Bits [1:0] In 4-level color display modes, the 16 position Red palette is arranged into four, 4 position "banks". These two bits control which bank is currently selected. In 256 color display modes, the 16 position, Red palette is arranged into two, 8 position "banks" for the display of "red" colors. Only bit 0 of these two bits controls which bank is currently selected. These bits have no effect in all gray shade or 16-color display modes. Blue Bank Bits [1:0] In both the 4 and 256 color display modes, the 16 position Blue palette is arranged into four 4 position "banks" for the display of "blue" colors. These two bits control which bank is currently selected. These bits have no effect in all gray shade display modes or 16 color display modes. Palette Data Bits [3:0] These 4-bits are the gray shade / color values used for display data output. They are programmed into the 4-bit Look-Up Table (palettes) positions pointed to by Palette Address bits [3:0] and RGB Index bit[1:0] (if in color display modes). For example; in a 16-level gray shade display mode, a data value of 0001b (4-bits / pixel) will point to Look-Up Table position one and display the 4-bit gray shade corresponding to the value programmed into that location.
bit 5-4
bits 3-0
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 72
Epson Research and Development Vancouver Design Center
8.2 Look-Up Table Architecture
Table 8-8: Look-Up Table Configurations Display Mode RED Black & White 4-level gray 16-level gray 4 color 16 color 256 color 4-bit wide Palette GREEN 4 banks of 4 1 bank of 16 4 banks of 4 1 bank of 16 2 banks of 8 BLUE
4 banks of 4 1 bank of 16 2 banks of 8
4 banks of 4 1 bank of 16 4 banks of 4
Indicates the palette is not used for that display mode
8.2.1 Gray Shade Display Modes
4-Level Gray Shade Mode
Green Look-Up Table Bank 0 2-bit pixel data
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit display data output
Bank 3
0 1 2 3
Bank Select bits [1:0] (Aux[0E] bits [7:6])
Note: the above depiction is intended to show the display data output path only. The CPU R/W access to the individual Look-Up Tables is not affected by the various `banking' configurations. Figure 37: 4-Level Gray-Shade Mode Look-Up Table Architecture
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 73
16-Level Gray Shade Mode Green Look-Up Table 16x4
0 1 2 3 C D E F
4-bit pixel data ( P3, P2, P1, P0 )
msb lsb
4-bit Look-Up Table data output
Figure 38: 16-Level Gray-Shade Mode Look-Up Table Architecture Note The Look-Up Table is bypassed in black-and-white display mode
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 74
Epson Research and Development Vancouver Design Center
8.2.2 Color Display Modes
4-Level Color Mode RED Look-Up Table Bank 0 2-bit pixel data
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `RED' display data output
Bank 3
0 1 2 3
Red Bank Select bits [1:0] (Aux[0F] bits [7:6])
GREEN Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `GREEN' display data output
Bank 3 Green Bank Select bits [1:0] (Aux[0E] bits [7:6])
0 1 2 3
Blue Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `BLUE' display data output
Bank 3 Blue Bank Select bits [1:0] (Aux[0F] bits [5:4])
0 1 2 3
Figure 39: 4-Level Color Mode Look-Up Table Architecture
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 75
16-Level Color Mode Red Look-Up Table 16x4
0 1 2 3 C D E F
4-bit pixel data
4-bit `RED' Look-Up Table data output
Green Look-Up Table 16x4
0 1 2 3 C D E F
4-bit `GREEN' Look-Up Table data output
Blue Look-Up Table 16x4
0 1 2 3 C D E F
4-bit `BLUE' Look-Up Table data output
Figure 40: 16-Level Color Mode Look-Up Table Architecture
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 76
Epson Research and Development Vancouver Design Center
256-Level Color Mode
256 Color Data Format: 76543210 R2 R1 R0 G2 G1 G0 B1 B0
Red Look-Up Table Bank 0 3-bit pixel data (R2, R1, R0)
0 1 2 3 4 5 6 7
Bank 1
0 1 2 3 4 5 6 7
Bank Select Logic
4-bit `RED' display data output
Red Bank Select bit (Aux[0F] bit 6) Green Look-Up Table Bank 0 3-bit pixel data (G2, G1, G0)
0 1 2 3 4 5 6 7
Bank 1
0 1 2 3 4 5 6 7
Bank Select Logic
4-bit `GREEN' display data output
Green Bank Select bit (Aux[0E] bit 6) 2-bit pixel data (B1, B0) Blue Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `BLUE' display data output
Bank 3
0 1 2 3
Blue Bank Select bits [1:0] (Aux[0F] bits [5:4]) Figure 41: 256-Level Color Mode Look-Up Table Architecture
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 77
8.3 Power Save Modes
Two software-controlled Power Save Modes have been incorporated into the S1D13503 to accommodate the important need for power reduction in the hand-held devices market. These modes can be enabled by setting the two Power Save bits (AUX[03] bits 7:6). The various settings are: Table 8-9: Power Save Mode Selection Bit 5 Bit 4 0 0 0 1 1 0 1 1 Mode Activated Normal Operation Power Save Mode 1 Power Save Mode 2 Reserved
8.3.1 Power Save Mode 1
Power Save Mode 1 has two states. Initially when set, the S1D13503 enters State 1. If no valid memory cycle is detected within 1, 2, or 4 clocks (input clock frequency dependent), the chip will enter State 2. The number of clocks of inactivity before entering State 2 is dependent on the display memory interface and the number of Gray shades. State 1 * * * I/O read/write of all registers allowed Memory read/write allowed LCD outputs are either forced low (AUX[03] bit 5=0), or high impedance (AUX[03] bit 5=1)
State 2 The same as State 1 as well as: * Master clock for display memory access is disabled
Once a valid memory read/write cycle is detected, the S1D13503 returns to State 1 where the MPU access is serviced. The transition from going from State 2 to State 1 requires 1, 2, or 4 clocks (as described above).
8.3.2 Power Save Mode 2
* * * * * I/O read/write of all registers allowed Memory read/write is disabled Master clock for display memory access is disabled LCD outputs are either forced low (AUX[03] bit 5=0), or high impedance (AUX[03] bit 5=1) Internal oscillator is disabled.
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 78
Epson Research and Development Vancouver Design Center
8.3.3 Power Save Mode Function Summary
Table 8-10: Power Save Mode Function Summary Power Save Mode (PSM) Function Normal (Active) Yes Yes Yes Yes No PSM1 State 1 No Yes Yes No No State 2 No Yes No No No PSM2
Display Active? I/O Access Possible? Memory Access Possible? Sequence Controller Running? Internal Oscillator Disabled?
No Yes No No Yes
8.3.4 Pin States in Power Save Modes
Table 8-11: Pin States in Power Save Modes Pin State Pin Normal (Active) PSM1 State 1 UD[3:0], LD[3:0], LP, XSCL, YD, WF/XSCL2 (Note 1) UD[3:0], LD[3:0], LP, XSCL, YD, WF/XSCL2 (Note 2) AB[19:0], DB[15:0] IOR#, IOW# MEMR#, MEMW# RESET Active High Impedance State 2 High Impedance High Impedance PSM2
Active Active Active Active Active
Forced Low Forced Low Forced Low Active Active Active Active Active Active Active Active Active Active Active Active
Note 1. Internal Register AUX[03], bit 5 = 1 2. Internal Register AUX[03], bit 5 = 0
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 79
9 DISPLAY MEMORY INTERFACE
9.1 SRAM Configurations Supported 9.1.1 8-Bit Mode
VD0-7 VWE# WE#
S1D13503
8Kx8
CS#
VCS0# VCS1# VA0-12
n/c
Figure 42: 8-Bit Mode - 8K bytes SRAM
VD0-7 VWE# WE# WE#
S1D13503
8Kx8
CS#
8Kx8
CS#
VCS0# VCS1# VA0-12
Figure 43: 8-Bit Mode - 16K bytes SRAM (Requires AUX[01] bit 0 = 0)
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 80
Epson Research and Development Vancouver Design Center
VD0-7 VWE# WE#
S1D13503
32Kx8
CS#
VCS0# VCS1# VA0-14
n/c
Figure 44: 8-Bit Mode - 32K bytes SRAM (Requires AUX[01] bit 0 = 1)
VD0-7 VWE# WE# WE#
S1D13503
8K/32Kx8
CS#
32K/8Kx8
CS#
VCS0# VCS1# VA0-14
Figure 45: 8-Bit Mode - 40K bytes SRAM [either (8Kx8 + 32Kx8) requiring AUX[01] bit 0 = 0 or (32Kx8 + 8Kx8) requiring AUX[01] bit 0 = 1]
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 81
VD0-7 VWE# WE# WE#
S1D13503
32Kx8
CS#
32Kx8
CS#
VCS0# VCS1# VA0-14
Figure 46: 8-Bit Mode - 64K bytes SRAM (Requires AUX[01] bit 0 = 1)
9.1.2 16-bit Mode
VD0-7 VWE# WE#
S1D13503
VCS0# VA0-12 VCS1#
8Kx8
CS#
CS#
8Kx8
WE# VD8-15
Figure 47: 16-Bit Mode - 16K bytes SRAM
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 82
Epson Research and Development Vancouver Design Center
VD0-7 VWE# WE#
S1D13503
VCS0# VA0-14 VCS1#
32Kx8
CS#
CS#
32Kx8
WE# VD8-15
Figure 48: 16-Bit Mode - 64K bytes SRAM
VWE#
WE#
S1D13503
VCS0# VCS1# LB# UB#
VA0-15 VD0-7 VD8-15
A0-15 I/O 1-8 I/O 9-16
Figure 49: 16-Bit Mode - 128K bytes SRAM
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 83
9.2 SRAM Access Time 9.2.1 8-bit Display Memory Interface:
Table 9-1: 8-Bit Display Memory Interface SRAM Access Time Display Mode 3V/3.3V 16-level gray shades / 16-level colors Access time < 1 / fOSC - 40ns 4-level gray shades / 4-level colors Access time < 2 / fOSC - 40ns Black-and-White (BW) Access time < 2 / fOSC - 40ns 5V Access time < 1 / fOSC - 25ns Access time < 2 / fOSC - 25ns Access time < 2 / fOSC - 25ns
9.2.2 16-bit Display Memory Interface:
Table 9-2: 16-Bit Display Memory Interface SRAM Access Time Display Mode 256-level colors 16-level gray shades / 16-level colors 4-level gray shades / 4-level colors Black-and-White (BW) 3V/3.3V Access time < 1 / fOSC - 40ns Access time < 2 / fOSC - 40ns Access time < 4 / fOSC - 40ns Access time < 4 / fOSC - 40ns 5V Access time < 1 / fOSC - 25ns Access time < 2 / fOSC - 25ns Access time < 4 / fOSC - 25ns Access time < 4 / fOSC - 25ns
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 84
Epson Research and Development Vancouver Design Center
9.3 Frame Rate Calculation 9.3.1 For single panel
Black-and-White (BW) Display Mode:
2 x f osc FrameRate = ------------------------------------------------------------------------------------------------------------------------------------------------------------------( HorizontalPixels + PHNDP + DHNDP ) x ( VerticalLines + 4 )
All Other Display Modes:
f osc FrameRate = ------------------------------------------------------------------------------------------------------------------------------------------------------------------( HorizontalPixels + PHNDP + DHNDP ) x ( VerticalLines + 4 )
9.3.2 For dual panel
Black-and-White (BW) Display Mode:
2 x f osc FrameRate = ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------VerticalLines ( HorizontalPixels + PHNDP + DHNDP ) x 2 x ----------------------------------- + 2 2
All Other Display Modes:
f osc FrameRate = ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------VerticalLines ( HorizontalPixels + PHNDP + DHNDP ) x 2 x ----------------------------------- + 2 2
Where DHNDP is Default Horizontal Non-Display Period in term of pixels : DHNDP = 16 pixels per panel in gray shade display modes, and DHNDP = 32 pixels per panel in BW display mode and in color display modes. Where PHNDP is Programmable Horizontal Non-Display Period in term of pixels : PHNDP = 0 pixels when AUX[0C] = 0, and
) PHNDP = ( AUX [ 0C ] + 1 ) x ( MemoryInterfaceWidth - pixels when AUX[0C] not equal to zero. ---------------------------------------------------------------------------------------------------------------( BitsPerPixel )
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 85
9.4 Memory Size Calculation
Memory Size (bytes) =
( HorizontalPixels ) x ( VerticalLines ) x ( BitsPerPixel ) ----------------------------------------------------------------------------------------------------------------------------------------------8
Example : For a 640x480, 4 gray shades (2 bits-per-pixel) system : Memory Size (bytes) =
( 640 ) x ( 480 ) x ( 2 ) ----------------------------------------------- = 76800bytes = 75Kbyte 8
9.5 Memory Size Requirement
The following tables summarize the preceding information (formulae). Input clock (fOSC) is limited by SRAM access time depending on the display mode and display memory interface that is being used. As a result, different resolutions will have different input clock and memory requirements for a particular frame rate. Tables 9-3 through 9-5 summarize the minimum memory size and access time requirements for various resolutions at a particular input clock along with the corresponding frame rates. Table 9-3: Memory Size Requirement: Number of Horizontal Pixels = 640 Number of Horizontal Pixels = 640
Display Mode Black-and-White (BW) (1 bit-per-pixel) 4 Grays / 4 Colors (2 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V 16 Grays / 16 Colors (4 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V (1) (2) 75 ns 256 Colors (8 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V (1) (1) (1) (1) (1) Input Clock (fOSC) Example Frame Rate BW / Gray Color 74 Hz 74 Hz 73 Hz 69 Hz 73 Hz 73 Hz
Condition AUX[0C] = AUX[02] Display Size Access Time Memory (KB) 3V/3.3V 5V Interface
(KB) 3V/3.3V 75
(KB) 3V/3.3V (1) (2) 60 ns (2) 85 ns
(KB) 3V/3.3V 300 250 (1) (1) (1) (1) (1) (2)(3) 60 ns
Number of Vertical Lines
480 400 320 256 240 200
8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit
37.5 32 25 20 19 16
40 ns 55 ns 125 ns 140 ns
(2) (2) 150 125 ns 140 ns 60 ns 75 ns 125 160 ns 175 ns 85 ns 100 ns 100 210 ns 225 ns 125 ns 140 ns 290 ns 305 ns 125 ns 140 ns 290 ns 305 ns 80 75
24 MHz 76 Hz 20 MHz 75 Hz 16 MHz 75 Hz 12 MHz 70 Hz 12 MHz 75 Hz
60 ns 75 ns 62.5 160 ns 175 ns 85 ns 100 ns 210 ns 225 ns 125 ns 140 ns 290 ns 305 ns 50 40
(2) 200 100 ns
(2) (2) 160 125 ns 140 ns (2) (2) 150 125 ns 140 ns 60 ns 75 ns 125 160 ns 175 ns
125 ns 140 ns 37.5 290 ns 305 ns 160 ns 175 ns 360 ns 375 ns 32
160 ns 175 ns 62.5 360 ns 375 ns
(2)(3) 10 MHz 75 Hz 75 ns
(1) Memory more than 128KB cannot be supported by S1D13503. (2) Memory more than 64KB can only be supported through 16-bit display memory interface. (3) 256 color mode must use 16-bit display memory interface. * KB = K byte = 1024 bytes
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 X18A-A-001-08
Page 86
Epson Research and Development Vancouver Design Center
Table 9-4: Memory Size Requirement: Number of Horizontal Pixels = 480 Number of Horizontal Pixels = 480
Display Mode Black-and-White (BW) (1 bit-per-pixel) 4 Grays / 4 Colors (2 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V 16 Grays / 16 Colors (4 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V (2) 85 ns 256 Colors (8 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V (1) (1) (1) Input Clock (fOSC) Example Frame Rate BW / Gray Color 73 Hz 68 Hz 72 Hz 75 Hz 64 Hz 77 Hz
Condition AUX[0C] = AUX[02] Display Size Access Time Memory (KB) 3V/3.3V 5V Interface
(KB) 3V/3.3V 57 47
(KB) 3V/3.3V (2) 70 ns
(KB) 3V/3.3V 225 (1) (1) (1) (2)(3) 60 ns (2)(3) 85 ns (2)(3) 85 ns
Number of Vertical Lines
480 400 320 256 240 200
8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit
29 23.5 19 15 14.5 12
70 ns 85 ns 180 ns 195 ns 100 ns 115 ns 240 ns 255 ns
70 ns 85 ns 113 180 ns 195 ns 100 ns 115 ns 240 ns 255 ns 94 75 60 57 47
18 MHz 75 Hz 14 MHz 70 Hz 12 MHz 75 Hz
(2) (2) 188 100 ns 115 ns (2) (2) 150 125 ns 140 ns 60 ns 75 ns 120 160 ns 175 ns 85 ns 100 ns 113 210 ns 225 ns 85 ns 100 ns 210 ns 225 ns 94
125 ns 140 ns 125 ns 140 ns 37.5 290 ns 305 ns 290 ns 305 ns 160 ns 175 ns 360 ns 375 ns 210 ns 225 ns 460 ns 475 ns 30 29 160 ns 175 ns 360 ns 375 ns 210 ns 225 ns 460 ns 475 ns
(2)(3) 10 MHz 77 Hz 75 ns (2)(3) 8 MHz 66 Hz 100 ns (2)(3) 8 MHz 79 Hz 100 ns
210 ns 225 ns 210 ns 225 ns 23.5 460 ns 475 ns 460 ns 475 ns
Table 9-5: Memory Size Requirement: Number of Horizontal Pixels = 320 Number of Horizontal Pixels = 320
Display Mode Black-and-White (BW) (1 bit-per-pixel) 4 Grays / 4 Colors (2 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V 16 Grays / 16 Colors (4 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V 256 Colors (8 bits-per-pixel) AUX[0C] = 0 Size Access Time 5V (1) Input Clock (fOSC) Example Frame Rate BW / Gray Color 70 Hz 70 Hz 70 Hz 66 Hz 70 Hz 70 Hz
Condition AUX[0C] = AUX[02] Display Size Access Time Memory Interface (KB) 3V/3.3V 5V
(KB) 3V/3.3V
(KB) 3V/3.3V 75
(KB) 3V/3.3V (1) (2)(3) 60 ns (2)(3) 85 ns
Number of Vertical Lines
480 400 320 256 240 200
8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit 8-bit 16-bit
19 16 12.5 10 9.5 8
125 ns 140 ns 125 ns 140 ns 37.5 290 ns 305 ns 290 ns 305 ns 160 ns 175 ns 360 ns 375 ns 210 ns 225 ns 460 ns 475 ns 290 ns 305 ns 625 ns 640 ns 290 ns 305 ns 625 ns 640 ns 360 ns 375 ns 760 ns 775 ns 32 25 20 19 16
(2) (2) 150 125 ns 140 ns
12 MHz 74 Hz
160 ns 175 ns 60 ns 75 ns 62.5 125 360 ns 375 ns 160 ns 175 ns 210 ns 225 ns 460 ns 475 ns 290 ns 305 ns 625 ns 635 ns 50 40 85 ns 100 ns 100 210 ns 225 ns 125 ns 140 ns 290 ns 305 ns 80 75
(2)(3) 10 MHz 74 Hz 75 ns (2)(3) 8 MHz 73 Hz 100 ns
(2)(3) (2)(3) 6 MHz 69 Hz 125 ns 140 ns (2)(3) (2)(3) 6 MHz 73 Hz 125 ns 140 ns
290 ns 305 ns 125 ns 140 ns 37.5 625 ns 640 ns 290 ns 305 ns 360 ns 375 ns 760 ns 775 ns 32
160 ns 175 ns (2)(3) (2)(3) 62.5 5 MHz 73 Hz 360 ns 375 ns 160 ns 175 ns
(1) Memory more than 128KB cannot be supported by S1D13503. (2) Memory more than 64KB can only be supported through 16-bit display memory interface. (3) 256 color mode must use 16-bit display memory interface. * KB = K byte = 1024 bytes
S1D13503 X18A-A-001-08
Hardware Functional Specification Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 87
10 MECHANICAL DATA
QFP5-100PIN-S2 (S1D13503)
23.2 0.04 20.0 0.1 80 51
81
50
Index
100
31
1 0.15 0.05 2.7 0.1
0.65 0.1
0.30 0.1
30
14.0 0.1 0.8 0.1 1.6
0~12
All dimensions in mm
Figure 50: Mechanical Drawing QFP5-100-S2 (S1D13503F00A)
Hardware Functional Specification Issue Date: 01/01/29
17.2 0.04
S1D13503 X18A-A-001-08
Page 88
Epson Research and Development Vancouver Design Center
QFP15-100PIN-STD (S1D13503)
16.0 0.4 14.0 0.1 75 76 51 50
14.0 0.1 Index 100 0.125 0.1 1 1.4 0.1 0.168 0.1 25 0.5 26 0.5 0.2 1 All dimensions in mm
Figure 51: Mechanical Drawing QFP15-100-STD (S1D13503F01A)
S1D13503 X18A-A-001-08
16.0 0.4 0~12
Hardware Functional Specification Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
Programming Notes and Examples
Document Number: X18A-G-002-06
Copyright (c) 1996, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
TABLE OF CONTENTS
1 2 3 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 INITIALIZING THE S1D13503 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 GRAY SHADES / COLORS AND LOOK-UP TABLES . . . . . . . . . . . . . . . 18
3.1 Pixels 3.1.1 3.1.2 3.1.3 3.1.4 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Memory Organization for One Bit Pixel (Black-and-White) . . . . . . . . . . . . . . . 18 Memory Organization for Two Bit Pixels (4 Colors/Gray Shades) . . . . . . . . . . . . 18 Memory Organization for Four Bit Pixels (16 Colors/Gray Shades) . . . . . . . . . . . 19 Memory Organization for Eight Bit Pixels (256 Colors) . . . . . . . . . . . . . . . . . 19 LUT Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Look-Up Table Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Black-and-White (One Bit/Pixel) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Four Gray Shades (Two Bits/Pixel in Monochrome Mode) . . . . . . . . . . . . . . . . 26 Four Colors (Two Bits/Pixel in Color Mode) . . . . . . . . . . . . . . . . . . . . . . . 28 Sixteen Gray Shades (Four Bits/Pixel in Monochrome Mode) . . . . . . . . . . . . . . 30 Sixteen Colors (Four Bits/Pixel in Color Mode) . . . . . . . . . . . . . . . . . . . . . 31 256 Colors (Eight Bits/Pixel in Color Mode) . . . . . . . . . . . . . . . . . . . . . . . 32
Look-Up Table (LUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4
DISPLAY MEMORY MODELS . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.1 4.2 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.2.1 4.2.2 4.3 S5U13503B00C Evaluation Board Display Memory . . . . . . . . . . . . . . . . . . . 36 Display Start Address Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Common Display Memory Requirements for LCD Panel Sizes: . . . . . . . . . . . . . 38
5
ADVANCED TECHNIQUES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.1 Virtual Displays 5.1.1 5.1.2 5.2 5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Bitmaps and Text Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Mapping of Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.3.1 5.3.2 Indexed Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Direct Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Single Panel LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Dual Panel LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Panning Right and Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 Scrolling Up and Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
5.4
Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.4.1 5.4.2 5.4.3
5.5
Panning and Scrolling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 5.5.1 5.5.2 5.5.3
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 4
Epson Research and Development Vancouver Design Center
5.6
Power Saving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5.6.1 5.6.2 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6 7
IDENTIFYING THE S1D13503
7.1 7.2 7.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . .56
PROGRAMMING THE S1D13503 . . . . . . . . . . . . . . . . . . . . . . . . . . .57
Main Loop Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Initialization Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Advanced Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
8
GLOSSARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 5
LIST OF TABLES
Table 3-1: Number Of Bits As Related To Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 Table 3-2: ID Bit Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Table 3-3: Look-Up Table Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Table 3-4: Look-Up Table Configurations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Table 3-5: S1D13503 Color Look-up Table For 256 Color Mode. . . . . . . . . . . . . . . . . . . . . . .23 Table 3-6: S1D13503 Black-To-White Look-Up Table . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Table 3-7: S1D13503 Inverted Look-Up Table (White-To-Black) . . . . . . . . . . . . . . . . . . . . . .25 Table 3-8: S1D13503 Black-To-White Look-up Table For 4 Gray Shades . . . . . . . . . . . . . . . . . .26 Table 3-9: S1D13503 Low To High Intensity Color Look-Up Table For 4 Colors . . . . . . . . . . . . . .28 Table 3-10: Simulation Of First 16 Entries Of Standard VGA Palette . . . . . . . . . . . . . . . . . . . . .31 Table 3-11: Examples Of 256 Pixel Colors Using Linear LUT . . . . . . . . . . . . . . . . . . . . . . . . .32 Table 4-1: Memory Size Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 Table 5-1: Smallest Number Of Pixels For Panning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 Table 5-2: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 Table 5-3: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 Table 5-4: Power Save Mode Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 Table 6-1: ID Bit Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 6
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 7
LIST OF FIGURES
Figure 1: Pixel Storage For 1 Bit (Black-and-White) In One Byte Of Display Memory . . . . . . . . . . 18 Figure 2: Pixel Storage For 2 Bits (4 Colors/Gray Shades) In One Byte Of Display Memory . . . . . . . 18 Figure 3: Pixel Storage For 4 Bits (16 Colors/gray Shades) In One Byte Of Display Memory . . . . . . . 19 Figure 4: Pixel Storage For 8 Bits (256 Colors) In One Byte Of Display Memory . . . . . . . . . . . . . 19 Figure 5: 4-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . 27 Figure 6: 4-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . 29 Figure 7: 16-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . 30 Figure 8: 16-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . 31 Figure 9: 256-Level Color Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . 33 Figure 10: Memory Map Example For 320 x 240 LCD Panel With 4 Colors/Gray Shades . . . . . . . . . 38 Figure 11: Memory Map Example For 320 x 240 LCD Panel With 256 Colors . . . . . . . . . . . . . . . 39 Figure 12: Memory Map Example For 640 x 200 LCD Panel With 16 Colors/Gray Shades . . . . . . . . . 39 Figure 13: Moving A Viewport Inside A Virtual Display . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Figure 14: Font For The Message "TEXT" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Figure 15: Display Memory Contents For Message "Text" In 256 Color Mode . . . . . . . . . . . . . . . 43 Figure 16: Memory Map For Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Figure 17: 320 x 240 Single Panel For Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Figure 18: 640 x 480 Dual Panel For Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Figure 19: Memory Map For A Dual Panel Showing A Single Image . . . . . . . . . . . . . . . . . . . . 51 Figure 20: Display For 13503DEMO.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 8
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 9
1 INTRODUCTION
The purpose of this guide is to demonstrate how to program the S1D13503 LCD controller, with reference made to the S5U13503B00C evaluation board. The first half of this guide presents the basic concepts of LCD controllers. The second half of this guide presents programming examples which are combined in a simple menu-driven program. Most of the program is written in the `C' programming language, with some parts written in 8086 assembly.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 10
Epson Research and Development Vancouver Design Center
2 INITIALIZING THE S1D13503
This section presents two examples to show how to initialize the S1D13503 registers and write a pixel to the display. Code to initialize the S1D13503 is provided in Section 7.2, "Initialization Code" on page 60. The following examples describe values written to registers. * * A "panel specific" value is one required for the given type of panel. Such a value must never change after initialization of all registers. An "implementation specific" value is one required for the hardware implementation of the S1D13503. Such a value must never change after initialization of all registers. Refer to the S1D13503 Hardware Functional Specification and S5U13503B00C Evaluation Board User's Manual for more information on hardware implementation issues. An "application specific" value is one that can be changed by the program after initialization of all registers. Initialize the registers for a 256 color 320 x 240 single panel LCD with 128k of display memory. Afterwards write one pixel to the top left corner of the display.
*
Example 1:
Program S1D13503 Registers in the following order with the data supplied: AUX Register AUX[00h] Data
(in Binary)
Notes bits 7 and 6 must be zero b7 = display off (application specific; the recommended procedure is to turn this bit off during register initialization and afterwards turn this bit on) b6 = single panel (panel specific) b5 = XSCL is masked (panel specific) b4 = LCDE = LCDENB pin = set to disable specific power supply design (for S5U13503B00C, set bit to 0 to disable power supply) (application specific; the recommended procedure is to disable the power supply during register initialization and afterwards enable the power supply) b3 = N/A for 256 colors (application specific) b2 = 4 bit LCD data width when combined with AUX[03] bit 3 (panel specific) b1 = 16 bit Memory Interface (implementation specific) b0 = RAMS ignored (implementation specific) bits 7-0 = bits 7-0 of Line Byte Count bit 8 of Line Byte Count is bit 0 of AUX[03h] bits 7-6 = Power Save Mode 0 (application specific - for normal operation set to 00b) bit 5 = LCD interface signals forced low during Power Save (implementation and panel specific) bit 4 = no LUT bypass (application specific) bit 3 = 4 bit LCD data width when combined with AUX[01] bit 2 (panel specific) bit 2 = 256 color mode (application specific) bit 1 = color panel attached (panel specific) bit 0 = bit 8 of Line Byte Count (panel specific, see AUX[02h]) bits 7-0 = bits 7-0 of Total Display Line Count bits 9-8 of Total Display Line Count in bits 1-0 of AUX[05h]
See Also
0000 0000 * *
* * * AUX[01h] 0010 1001
* * * * * 1001 1111 * * * * 0000 0110 * * * * * 1110 1111 *
AUX[02h]
see Note A at end of Table for calculation
AUX[03h]
see Section 5.6, "Power Saving" on page 54
AUX[04h]
see Note B and C at end of Table for calculation
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 11
AUX Register AUX[05h]
Data
(in Binary)
Notes
See Also
* 0000 0000 *
AUX[06h] AUX[07h]
0000 0000 0000 0000
AUX[08h] AUX[09h]
0000 0000 0000 0000
bits 7-2: 0 = WF output toggles every frame (panel specific) bits 1-0 = bits 9-8 of Total Display Line Count (panel specific, see AUX[04h]) * bits 15-0 of Screen 1 Display Start Address - normally Screen 1 see Section 4.2.1, Start Address = 0000h (application and panel specific) "S5U13503B00C Evaluation Board bits 7-0 are in AUX[06h] and bits 15-8 are in AUX[07h] Display Memory" on when 0000h, Screen 1 Display Start Address is located at page 36 and Section 4.1, D000:0000h, bank 0, on the S5U13503B00C "Registers" on page 34 * bits 15-0 of Screen 2 Display Start Address - normally Screen 2 see Section 4.2.1, Start Address = 0000h (application and panel specific) "S5U13503B00C Evaluation Board bits 7-0 are in AUX[08h] and bits 15-8 are in AUX[09h] Display Memory" on when 0000h, Screen 1 Display Start Address is located at page 36 and Section 4.1, D000:0000h, bank 0, on the S5U13503B00C "Registers" on page 34 * bits 7-0 = bits 7-0 of Screen 1 Display Line Count bits 9-8 of Screen 1 Display Line Count in bits 1-0 of AUX[0Bh]
see Section 5.4, "Split AUX[0Ah] 1110 1111 Screen 1 Display Line Count is typically the same as Total Display Screen" on page 45 Line Count (AUX[0Ah] = AUX[04h], bits 1-0 of AUX[0Bh] = bits 1-0 of AUX[05h]) * bits 7-2 = don't care; recommend clearing bits AUX[0Bh] 0000 0000 * bits 1-0 = bits 9-8 of Screen 1 Display Line Count (application specific, see AUX[0Ah]) AUX[0Ch] 0000 0000 AUX[0Dh] 0000 0000 normally programmed to 00h (panel specific) * * bits 7-0 = use fixed default non-display period bits 7-0 = no address pitch adjustment when 0 bits 7-6 = green bank 0 (application specific) bits 5-4 = auto increment palette R/W access (application specific) bits 3-0 = palette address (application specific) bits 7-6 = red bank 0 (application specific) bits 5-4 = blue bank 0 (application specific) bits 3-0 = palette data (application specific) see Section 5.1, "Virtual Displays" on page 40 normally programmed to 00h (normal) select palette address * AUX[0Eh] 0000 0000 * * * * *
write Red data AUX[0Fh] 0000 0000
AUX[0Fh] 0000 0000 write Green data AUX[0Fh] 0000 0000 write Blue data AUX[0Eh] 0000 0001 increment palette address AUX[0Fh] 0000 0010 write Red data AUX[0Fh] 0000 0010 write Green data AUX[0Fh] 0000 0101 write Blue data AUX[0Eh] 0000 0010 increment palette address
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 12
Epson Research and Development Vancouver Design Center
AUX Register
Data
(in Binary)
Notes
See Also
AUX[0Fh] 0000 0100 write Red data AUX[0Fh] 0000 0100 write Green data AUX[0Fh] 0000 1010 write Blue data AUX[0Eh] 0000 0011 increment palette address AUX[0Fh] 0000 0110 write Red data AUX[0Fh] 0000 0110 write Green data AUX[0Fh] 0000 1111 write Blue data AUX[0Eh] 0000 0100 increment palette address AUX[0Fh] 0000 1001 write Red data AUX[0Fh] 0000 1001 write Green data AUX[0Fh] 0000 1111 write Blue data AUX[0Eh] 0000 0101 increment palette address AUX[0Fh] 0000 1011 write Red data AUX[0Fh] 0000 1011 write Green data AUX[0Fh] 0000 1010 write Blue data AUX[0Eh] 0000 0110 increment palette address AUX[0Fh] 0000 1101 write Red data AUX[0Fh] 0000 1101 write Green data AUX[0Fh] 0000 0101 write Blue data AUX[0Eh] 0000 0111 increment palette address AUX[0Fh] 0000 1111 write Red data AUX[0Fh] 0000 1111 write Green data AUX[0Fh] 0000 0000 write Blue data AUX[0Eh] 0000 1000 increment palette address AUX[0Fh] 0000 1111 write Red data AUX[0Fh] 0000 1111 write Green data AUX[0Fh] 0000 0001 write Blue data AUX[0Eh] 0000 1001 increment palette address AUX[0Fh] 0000 1101 write Red data AUX[0Fh] 0000 1101 write Green data AUX[0Fh] 0000 0110 write Blue data AUX[0Eh] 0000 1010 increment palette address AUX[0Fh] 0000 1011 write Red data AUX[0Fh] 0000 1011 write Green data AUX[0Fh] 0000 1001 write Blue data AUX[0Eh] 0000 1100 increment palette address AUX[0Fh] 0000 0110 write Red data AUX[0Fh] 0000 0110 write Green data
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 13
AUX Register
Data
(in Binary)
Notes
See Also
AUX[0Fh] 0000 1101 write Blue data AUX[0Eh] 0000 1101 increment palette address AUX[0Fh] 0000 0100 write Red data AUX[0Fh] 0000 0100 write Green data AUX[0Fh] 0000 1001 write Blue data AUX[0Eh] 0000 1110 increment palette address AUX[0Fh] 0000 0010 write Red data AUX[0Fh] 0000 0010 write Green data AUX[0Fh] 0000 0100 write Blue data AUX[0Eh] 0000 1111 select palette address AUX[0Fh] 0000 0000 write Red data AUX[0Fh] 0000 0000 write Green data AUX[0Fh] 0000 0010 write Blue data program Mode Register bit DISP to 1, and set LCDE to enable power supply 1001 0000b `OR' {original value for AUX[01h]} AUX[01h] 1011 1001 * * b7 = display on (application specific) b4 = LCDE = LCDENB pin = set to enable specific power supply design (for S5U13503B00C, set bit to 1 to enable power supply) (application specific)
Write one pixel to the top left corner of display memory. If the S5U13503B00C evaluation board is used in indexed I/O mode, there are two video memory banks which begin at D000:0000 (2 banks x 64K per bank; see the following note). If the base port address is 310h, then read from port address 312h. Next, write 0FFh to location D000:0000h; this will be seen as a white pixel at the top left corner of the display. Note A
Bits Per Pixel Line Byte Count = ----------------------------------------------------------- x Horizontal Resolution - 1 Memory Interface Width 8 = ----- x 320 - 1 = 159 = 9Fh 16
B
Single Panel
Total Display Line Count = Number Of Display Lines - 1 = 240 - 1 = 239 = 0EFh
C
Dual Panel
Number Of Display Lines Total Display Line Count = -------------------------------------------------------------- - 1 2
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 14
Epson Research and Development Vancouver Design Center
Note The S5U13503B00C evaluation board maps the 128K of display memory into two banks of 64K, starting at D000:0000. This permits a VGA card to work along with the S1D13503B00C card. Bank 0 represents the first 64K of display memory, and is selected by reading from the base port address+2. Bank 1 represents the second 64K of display memory, and is selected by writing to the base port address+2. The values read from or written to the base port address+2 are not important; only the action of reading or writing is significant. This method of memory banking will only work if the S5U13503B00C is set for indexed port I/O and is specific to this board. Example 2: Initialize the registers for a 4 gray shade 640 x 480 dual panel LCD with 128k of display memory. Afterwards write one pixel to the top left corner of the display's second panel.
Program S1D13503 Registers in the following order with the data supplied: AUX Register AUX[00h] Data
(in Binary)
Notes bits 7 and 6 must be zero b7 = display off (application specific; the recommended procedure is to turn this bit off during register initialization and afterwards turn this bit on) b6 = dual panel (panel specific) b5 = XSCL not masked (panel specific) b4 = LCDE = LCDENB pin = set to disable specific power supply design (for S5U13503B00C, set bit to 0 to disable power supply) (application specific; the recommended procedure is to disable the power supply during register initialization and afterwards enable the power supply) b3 = 4 grays when combined with AUX[03] bits 1 and 2 (application specific) b2 = 8 bit LCD data width (panel specific) b1 = 16 bit Memory Interface (implementation specific) b0 = RAMS ignored (implementation specific) bits 7-0 = bits 7-0 of Line Byte Count bit 8 of Line Byte Count is bit 0 of AUX[03h] bits 7-6 = Power Save Mode 0 (application specific - for normal operation set to 00b) bit 5 = LCD interface signals forced low during Power Save (implementation and panel specific) bit 4 = no LUT bypass (application specific) bit 3 = 4 bit LCD data width when combined with AUX[01] bit 2 (panel specific) bit 2 = 4/16 gray shade mode (application specific) bit 1 = monochrome panel attached (panel specific) bit 0 = bit 8 of Line Byte Count (panel specific, see AUX[02h]) bits 7-0 = bits 7-0 of Total Display Line Count bits 9-8 of Total Display Line Count in bits 1-0 of AUX[05h] bits 7-2: 0 = WF output toggles every frame (panel specific) bits 1-0 = bits 9-8 of Total Display Line Count (panel specific, see AUX[04h])
See Also
0000 0000 * *
* * * AUX[01h] 0100 0101
* * * * * 0100 1111 * * * * 0000 0000 * * * * * 1110 1111 * * 0000 0000 *
AUX[02h]
see Note A at end of Table for calculation
AUX[03h]
see Section 5.6, "Power Saving" on page 54
AUX[04h] AUX[05h]
see Note B and C at end of Table for calculation
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 15
AUX Register
Data
(in Binary)
Notes *
See Also
AUX[06h] AUX[07h]
0000 0000 0000 0000
AUX[08h] AUX[09h]
0000 0000 0100 1011
bits 15-0 of Screen 1 Display Start Address - normally Screen 1 see Section 4.2.1, Start Address = 0000h (application and panel specific) "S5U13503B00C Evaluation Board bits 7-0 are in AUX[06h] and bits 15-8 are in AUX[07h] Display Memory" on when 0000h, Screen 1 Display Start Address is located at page 36 and Section 4.1, D000:0000h, bank 0, on the S5U13503B00C "Registers" on page 34 * bits 15-0 of Screen 2 Display Start Address - normally Screen 2 see Section 4.2.1, Start Address =4B00h (application and panel specific) "S5U13503B00C Evaluation Board bits 7-0 are in AUX[08h] and bits 15-8 are in AUX[09h] Display Memory" on when 4B00h, Screen 2 Display Start Address is located at page 36 and Section 4.1, D000:9600h, bank 0, on the S5U13503B00C "Registers" on page 34 * bits 7-0 = bits 7-0 of Screen 1 Display Line Count
bits 9-8 of Screen 1 Display Line Count in bits 1-0 of AUX[0Bh] see Section 5.4, "Split AUX[0Ah] 1110 1111 Screen 1 Display Line Count is typically the same as Total Display Screen" on page 45 Line Count (AUX[0Ah] = AUX[04h], bits 1-0 of AUX[0Bh] = bits 1-0 of AUX[05h]) * bits 7-2 = don't care; recommend clearing bits AUX[0Bh] 0000 0000 * bits 1-0 = bits 9-8 of Screen 1 Display Line Count (application specific, see AUX[0Ah]) AUX[0Ch] 0000 0000 AUX[0Dh] 0000 0000 normally programmed to 00h (panel specific) * * bits 7-0 = use fixed default non-display period bits 7-0 = no address pitch adjustment when 0 bits 7-6 = green bank 0 (application specific) bits 5-4 = auto increment palette R/W access (application specific) bits 3-0 = palette address (application specific) bits 7-6 = red bank 0 (application specific) bits 5-4 = blue bank 0 (application specific) bits 3-0 = palette data (application specific) see Section 5.1, "Virtual Displays" on page 40 normally programmed to 00h (normal) select palette address * AUX[0Eh] 0000 0000 * * * * *
write Red data AUX[0Fh] 0000 0000
AUX[0Fh] 0000 0000 write Green data AUX[0Fh] 0000 0000 write Blue data AUX[0Eh] 0000 0001 increment palette address AUX[0Fh] 0000 0010 write Red data AUX[0Fh] 0000 0010 write Green data AUX[0Fh] 0000 0101 write Blue data AUX[0Eh] 0000 0010 increment palette address AUX[0Fh] 0000 0100 write Red data AUX[0Fh] 0000 0100 write Green data
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 16
Epson Research and Development Vancouver Design Center
AUX Register
Data
(in Binary)
Notes
See Also
AUX[0Fh] 0000 1010 write Blue data AUX[0Eh] 0000 0011 increment palette address AUX[0Fh] 0000 0110 write Red data AUX[0Fh] 0000 0110 write Green data AUX[0Fh] 0000 1111 write Blue data AUX[0Eh] 0000 0100 increment palette address AUX[0Fh] 0000 1001 write Red data AUX[0Fh] 0000 1001 write Green data AUX[0Fh] 0000 1111 write Blue data AUX[0Eh] 0000 0101 increment palette address AUX[0Fh] 0000 1011 write Red data AUX[0Fh] 0000 1011 write Green data AUX[0Fh] 0000 1010 write Blue data AUX[0Eh] 0000 0110 increment palette address AUX[0Fh] 0000 1101 write Red data AUX[0Fh] 0000 1101 write Green data AUX[0Fh] 0000 0101 write Blue data AUX[0Eh] 0000 0111 increment palette address AUX[0Fh] 0000 1111 write Red data AUX[0Fh] 0000 1111 write Green data AUX[0Fh] 0000 0000 write Blue data AUX[0Eh] 0000 1000 increment palette address AUX[0Fh] 0000 1111 write Red data AUX[0Fh] 0000 1111 write Green data AUX[0Fh] 0000 0001 write Blue data AUX[0Eh] 0000 1001 increment palette address AUX[0Fh] 0000 1101 write Red data AUX[0Fh] 0000 1101 write Green data AUX[0Fh] 0000 0110 write Blue data AUX[0Eh] 0000 1010 increment palette address AUX[0Fh] 0000 1011 write Red data AUX[0Fh] 0000 1011 write Green data AUX[0Fh] 0000 1001 write Blue data AUX[0Eh] 0000 1100 increment palette address AUX[0Fh] 0000 0110 write Red data AUX[0Fh] 0000 0110 write Green data AUX[0Fh] 0000 1101 write Blue data AUX[0Eh] 0000 1101 increment palette address
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 17
AUX Register
Data
(in Binary)
Notes
See Also
AUX[0Fh] 0000 0100 write Red data AUX[0Fh] 0000 0100 write Green data AUX[0Fh] 0000 1001 write Blue data AUX[0Eh] 0000 1110 increment palette address AUX[0Fh] 0000 0010 write Red data AUX[0Fh] 0000 0010 write Green data AUX[0Fh] 0000 0100 write Blue data AUX[0Eh] 0000 1111 select palette address AUX[0Fh] 0000 0000 write Red data AUX[0Fh] 0000 0000 write Green data AUX[0Fh] 0000 0010 write Blue data program Mode Register bit DISP to 1, and set LCDE to enable power supply 1001 0000b `OR' {original value for AUX[01h]} AUX[01h] 1101 0101 * * b7 = display on (application specific) b4 = LCDE = LCDENB pin = set to enable specific power supply design (for S5U13503B00C, set bit to 1 to enable power supply) (application specific)
Write one pixel to the top left corner of the display's second panel. If the S5U13503B00C evaluation board is used in indexed mode, there are two video memory banks which begin at D000:0000 (2 banks x 64K per bank; see the note on page 14). If the base port address is 310h, then read from port address 312h. Next, write 0C0h to location D000:9600h; this will be seen as a white pixel at the top left corner of the display's second panel. Note A.
Bits Per Pixel Line Byte Count = ----------------------------------------------------------- x Horizontal Resolution - 1 Memory Interface Width 2 = ----- x 640 - 1 = 79 = 4Fh 16
B
Single Panel
Total Display Line Count = Number Of Display Lines - 1
C
Dual Panel
Number Of Display Lines 480 Total Display Line Count = -------------------------------------------------------------- - 1 = -------- - 1 = 239 = 0EFh 2 2
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 18
Epson Research and Development Vancouver Design Center
3 GRAY SHADES / COLORS AND LOOK-UP TABLES
This section discusses how the S1D13503 shows color and monochrome images on LCD panels.
3.1 Pixels
A pixel is physically stored in display memory as a series of bits. The more bits, the more colors the pixel can show. Table 3-1: Number Of Bits As Related To Colors Levels of Bits per Pixel Gray Shades Colors 1 2 4 8 2 4 16 n/a n/a 4 16 256
The following sections show how these pixels are stored in display memory.
3.1.1 Memory Organization for One Bit Pixel (Black-and-White)
To store one bit pixels, eight pixels are grouped into one byte of display memory as shown below: Bit 7 Pixel 0 Bit 0 Bit 6 Pixel 1 Bit 0 Bit 5 Pixel 2 Bit 0 Bit 4 Pixel 3 Bit 0 Bit 3 Pixel 4 Bit 0 Bit 2 Pixel 5 Bit 0 Bit 1 Pixel 6 Bit 0 Bit 0 Pixel 7 Bit 0
Figure 1: Pixel Storage For 1 Bit (Black-and-White) In One Byte Of Display Memory When these pixels are shown, Pixel 0 is seen to be left of Pixel 1, Pixel 1 is seen to be left of Pixel 2, and so on. One bit pixels are only available on monochrome panels, and can only be displayed in black-and-white (no Look-Up Table is used).
3.1.2 Memory Organization for Two Bit Pixels (4 Colors/Gray Shades)
To store two bit pixels, four pixels are grouped into one byte of display memory as shown below: Bit 7 Pixel 0 Bit 1 Bit 6 Pixel 0 Bit 0 Bit 5 Pixel 1 Bit 1 Bit 4 Pixel 1 Bit 0 Bit 3 Pixel 2 Bit 1 Bit 2 Pixel 2 Bit 0 Bit 1 Pixel 3 Bit 1 Bit 0 Pixel 3 Bit 0
Figure 2: Pixel Storage For 2 Bits (4 Colors/Gray Shades) In One Byte Of Display Memory When these pixels are shown, Pixel 0 is seen to be left of Pixel 1, Pixel 1 is seen to be left of Pixel 2, and so on. Two bit pixels are available in both monochrome and color panels.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 19
3.1.3 Memory Organization for Four Bit Pixels (16 Colors/Gray Shades)
To store four bit pixels, two pixels are grouped into one byte of display memory as shown below: Bit 7 Pixel 0 Bit 3 Bit 6 Pixel 0 Bit 2 Bit 5 Pixel 0 Bit 1 Bit 4 Pixel 0 Bit 0 Bit 3 Pixel 1 Bit 3 Bit 2 Pixel 1 Bit 2 Bit 1 Pixel 1 Bit 1 Bit 0 Pixel 1 Bit 0
Figure 3: Pixel Storage For 4 Bits (16 Colors/gray Shades) In One Byte Of Display Memory When these pixels are shown, Pixel 0 is seen to be left of Pixel 1. For color panels, each four bit pixel represents an index into the red, green, and blue LUTs. For monochrome panels, each four bit pixel represents an index into the green LUT.
3.1.4 Memory Organization for Eight Bit Pixels (256 Colors)
To store eight bit pixels, one pixel is stored in one byte of display memory as shown below: Bit 7 Red Bit 2 Bit 6 Red Bit 1 Bit 5 Red Bit 0 Bit 4 Green Bit 2 Bit 3 Green Bit 1 Bit 2 Green Bit 0 Bit 1 Blue Bit 1 Bit 0 Blue Bit 0
Figure 4: Pixel Storage For 8 Bits (256 Colors) In One Byte Of Display Memory As shown above, the 256 color pixel is divided into three parts: three bits for red, three bits for green, and two bits for blue. The red bits represent an index into the red LUT, the green bits represent an index into the green LUT, and the blue bits represent an index into the blue LUT. Eight bit pixels are only available in color panels.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 20
Epson Research and Development Vancouver Design Center
3.2 Look-Up Table (LUT)
This section provides a concise description of the LUT registers, followed by a description of the color and monochrome LUTs. Next is a series of examples which show how to initialize the LUTs, create an inverted LUT, and how to select one of four banks in both the 4 gray shade and color modes.
3.2.1 LUT Registers
AUX[0E] Look-Up Table Address Register I/O address = 1110b, Read/Write ID Bit / Green Bank Green Bank RGB Index Bit 1 Bit 0 Bit 1 ID Bit / RGB Index Bit 0 Palette Address Bit 3 Palette Address Bit 2 Palette Address Bit 1 Palette Address Bit 0
The S1D13503 has three internal 16 position, 4-bit wide Look-Up Tables (also referred to as palettes). The 4-bit value programmed into each table position determines the output gray shade / color weighting of display data. These tables are bypassed in black-and-white (BW) display mode. These three 16 position Look-Up Tables can be arranged in many different configurations to accommodate all the gray shade / color display modes. Refer to Look-Up Table Configurations on page 22 for formats. bits 7-6 Green Bank Bits [1:0] In 4-level gray / color display modes (2-bits/pixel), the 16 position Green palette is arranged into four, 4 position "banks". These two bits control which bank is currently selected. These bits have no effect in 16level gray / color display modes (4-bits/pixel). In 256 color display modes (8-bit/pixel), the 16 position Green palette is arranged into two, 8 position "banks" for the display of "green" colors. Only bit 0 of these two bits controls which bank is currently selected. bits 5-4 ID Bit / RGB Index Bits [1:0] These bits have dual purpose; ID Bits: After "power on" or hardware reset, these bits can be read to identify the current revision of the S1D13503. These same bits are used to identify the pin compatible S1D13502 and would only be used in system implementations where common software is being used. As these bits are R/W they must be read before being written in order to be used as ID bits. Table 3-2: ID Bit Usage Chip S1D13503 Power On or RESET reserved S1D13502 S1D13502 Aux[0E] bit 5 0 0 1 1 bit 4 0 1 0 1
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 21
RGB Index bits [1:0]: These bits are also used to provide access to the three internal Look-Up Tables (RGB). Table 3-3: Look-Up Table Access Aux[0E] bit 5 bit 4 0 0 1 1 0 1 0 1 Look-Up Table Access Auto-increment (see Note 1) Red palette R/W access Green palette R/W access Blue palette R/W access
Note When auto-increment is selected, an internal pointer will default to the Red palette on power on reset. Each read/write access to Aux[0F] will increment the counter to point to the next palette in order (RGB). Whenever the Look-Up Table Address register Aux[0E} is written, the RGB Index will reset the pointer to the Red palette. This provides a efficient method for sequential writing of RGB data. bits 3-0 Palette Address Bits [3:0] These 4 bits provide a pointer into the 16 position Look-Up Table currently selected for CPU R/W access.
Note The Look-Up Table configuration (e.g. 1/2/4 banks) does not affect the R/W access from the CPU. All 16 positions can be accessed sequentially.
AUX[0F] Look-Up Table Data Register I/O address = 1111b, Read/Write. Red Bank Bit 1 bit 7-6 Red Bank Bit 0 Blue Bank Bit 1 Blue Bank Bit 0 Palette Data Palette Data Palette Data Palette Data Bit 3 Bit 2 Bit 1 Bit 0
Red Bank Bits [1:0] In 4-level color display modes, the 16 position Red palette is arranged into four, 4 position "banks". These two bits control which bank is currently selected. In 256 color display modes, the 16 position, Red palette is arranged into two, 8 position "banks" for the display of "red" colors. Only bit 0 of these two bits controls which bank is currently selected. These bits have no effect in all gray shade or 16-color display modes. Blue Bank Bits [1:0] In both the 4 and 256 color display modes, the 16 position Blue palette is arranged into four 4 position "banks" for the display of "blue" colors. These two bits control which bank is currently selected. These bits have no effect in all gray shade display modes or 16 color display modes. Palette Data Bits [3:0] These 4-bits are the gray shade / color values used for display data output. They are programmed into the 4-bit Look-Up Table (palettes) positions pointed to by Palette Address bits [3:0] and RGB Index bit[1:0] (if in color display modes). For example; in a 16-level gray shade display mode, a data value of 0001b (4-bits / pixel) will point to Look-Up Table position one and display the 4-bit gray shade corresponding to the value programmed into that location.
bit 5-4
bits 3-0
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 22
Epson Research and Development Vancouver Design Center
3.2.2 Look-Up Table Description
* The Look-Up Table (LUT, or palette) treats the value of a pixel as an index into an array of colors or gray shades. For example, a pixel value of zero would point to the first LUT entry; a pixel value of 7 would point to the eighth LUT entry. The value inside each LUT entry represents the intensity of the given color or gray shade. This value ranges between 0 and 0Fh. The S1D13503 Look-Up table is linear; increasing the LUT entry number results in a lighter color or gray shade. For example, a LUT entry of 0Fh into the red Look-Up entry will always result in a bright red output. An entry of 00h into a Look-Up entry will always result in the removal of this color (black if monochrome). Because LUT entries represent the actual colors shown on the LCD panel, pixel values indirectly select which color or gray shade to display. When the number of bits in a pixel is less than 4, there are several different LUT configurations based on whether the display is monochrome or color, and the number of gray shades or colors.
* *
* *
Table 3-4: Look-Up Table Configurations Display Mode RED Black & White 4-level gray 16-level gray 4 color 16 color 256 color 4 banks of 4 1 bank of 16 2 banks of 8 4 banks of 4 1 bank of 16 4 banks of 4 1 bank of 16 2 banks of 8 4 banks of 4 1 bank of 16 4 banks of 4 4-bit wide Palette GREEN BLUE
Indicates the palette is not used for that display mode
3.2.2.1 Color Mode
In color mode, the S1D13503 supports three 16 position, 4 bit wide color LUTs (red, green, and blue). Depending on the selected pixel size, these LUTs will provide from 1 to 4 banks. * 2 bits-per-pixel (4 colors) In this format the pixel is an index into the red, green, and blue LUTs. Each color LUT supports 4 banks (see Section 3.2.5, "Four Colors (Two Bits/Pixel in Color Mode)" on page 28). 4 bits-per-pixel (16 colors) In this format the pixel is an index into the red, green, and blue LUTs. Each color LUT supports only one bank (see Section 3.2.7, "Sixteen Colors (Four Bits/Pixel in Color Mode)" on page 31). 8 bits-per-pixel (256 colors) In this format the pixel is divided into three parts: 3 bits for red, 3 bits for green, and 2 bits for blue. If the red, green, and blue LUTs were programmed to show a linear increase in intensity of the given color, the 8 bit pixel describes the intensity of the given set of colors. For example, a pixel value of 00h would be black, E0h would be bright red, 1Ch would be bright green, and 03h would be bright blue. Because there are 16 entries for each color LUT, the S1D13503 provides two red banks, two green banks, and four blue banks in 256 color mode (see Section 3.2.8, "256 Colors (Eight Bits/Pixel in Color Mode)" on page 32).
*
*
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 23
3.2.2.2 Monochrome Mode
In monochrome mode, the S1D13503 treats the green LUT as a 16 position, 4 bit wide monochrome LUT. Depending on the selected pixel size, this LUT will provide from 1 to 4 banks. * * 1 bit-per-pixel (black-and-white) In this format no LUT is used. A pixel value of 0 is black, and a pixel value of 1 is white. 2 bits-per-pixel (4 gray shades) In this format the pixel is an index into the monochrome LUT. The monochrome LUT supports 4 banks (see Section 3.2.4, "Four Gray Shades (Two Bits/Pixel in Monochrome Mode)" on page 26). 4 bits-per-pixel (16 gray shades) In this format the pixel is an index into the monochrome LUT. The monochrome LUT supports only one bank (see Section 3.2.6, "Sixteen Gray Shades (Four Bits/Pixel in Monochrome Mode)" on page 30). Initialize the Look-Up Table for 256 Colors (Bank 0 Only)
*
Example 3:
Table 3-5 shows the color LUTs with intensities starting from black (index 0) and finishing in maximum color intensity (at the largest index available for the color in bank 0). For example, the red LUT would have a maximum intensity at index 07h, the green LUT would have a maximum intensity at index 07h, and the blue LUT would have a maximum intensity at index 03h. A normal display would use bank 0 for the red, green, and blue LUTs. 1. 2. 3. 4. 5. Write LUT index to Look-Up Table Address Register AUX[0Eh], set to automatic increment mode. Write red LUT entry value to Look-Up Table Data Register AUX[0Fh]. Write green LUT entry value to Look-Up Table Data Register AUX[0Fh]. Write blue LUT entry value to Look-Up Table Data Register AUX[0Fh]. Repeat steps 1-4 until all 16 LUT entries have been written.
Table 3-5: S1D13503 Color Look-up Table For 256 Color Mode Index
(hex)
Red LUT Green LUT Blue LUT
(hex) (hex) (hex)
0 1 2 3 4 5 6 7
0 2 4 6 9 B D F
0 2 4 6 9 B D F
0 5 A F X X X X
Where X is Don't Care
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 24
Epson Research and Development Vancouver Design Center
Example 4:
Initialize the Look-Up Table for 16 Gray Shades
The following describes how to initialize the Look-Up table for 16 gray shades. Table 3-6 shows a LUT with gray shades starting from black (index 0) and finishing in white (index 15, or 0Fh). 1. 2. 3. Write LUT index to Look-Up Table Address Register AUX[0Eh]. Write LUT entry value to Look-Up Table Data Register AUX[0Fh]. Repeat steps 1 and 2 until all 16 LUT entries have been written.
Table 3-6: S1D13503 Black-To-White Look-Up Table Index
(hex)
Look-Up Table
(hex)
Index
(hex)
Look-Up Table
(hex)
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7
8 9 A B C D E F
8 9 A B C D E F
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 25
Example 5:
Initialize an Inverted Look-Up Table
This example shows how to invert an image by changing only the LUT. Inverting means that pixels formally shown as light gray shades are now shown as dark gray shades, and vise versa. It does not matter whether the S1D13503 is in 4 gray shade or 16 gray shade mode. 1. Read LUT entry. Write LUT index to Look-Up Table Address Register AUX[0Eh] Read "Old LUT Entry" from Look-Up Table Data Register AUX[0Fh] Calculate "New LUT Entry" according to the following formula:
New LUT Entry = 15 - Old LUT Entry
2.
3.
Write LUT entry back. Write LUT index to Look-Up Table Address Register AUX[0Eh] Write "New LUT Entry" to Look-Up Table Data Register AUX[0Fh] Repeat steps 1 to 3 until all 16 LUT entries have been changed.
4.
If Table 3-6 was previously programmed into the S1D13503, the new inverted LUT would be the following: Table 3-7: S1D13503 Inverted Look-Up Table (White-To-Black) Index
(hex)
Look-Up Table
(hex)
Index
(hex)
Look-Up Table
(hex)
0 1 2 3 4 5 6 7
F E D C B A 9 8
8 9 A B C D E F
7 6 5 4 3 2 1 0
3.2.3 Black-and-White (One Bit/Pixel)
When the S1D13503 is configured for one bit pixels, the monochrome (green) LUT is not used. Instead, a pixel value of 0 represents black and a pixel value of 1 represents white. Note One bit/pixel is only available in monochrome mode.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 26
Epson Research and Development Vancouver Design Center
3.2.4 Four Gray Shades (Two Bits/Pixel in Monochrome Mode)
When the S1D13503 is configured for two bit pixels in monochrome mode, each pixel can index one of four monochrome LUT entries. Note that in monochrome mode, the S1D13503 uses the green LUT as the monochrome LUT. The 16 LUT entries are divided into four separate Look-Up tables or banks, each having four entries (see Figure 5). The following examples show how to program and select these banks. Example 6: 1. In 4 gray shade mode, program bank 2 LUT entries and select for use.
Determine location of bank 2 in LUT. The first four entries in the 16 entry LUT represent the first bank (bank 0). The following four entries in the LUT represent the second bank (bank 1), etc. Consequently bank 2 starts at LUT index 8 as shown below:
start of bank index = bank number x 4 start of bank 2 = 2 x 4 = 8
Monochrome (green) Bank 2 is shown in Figure 5. 2. 3. Write LUT index to Look-Up Table Address Register AUX[0Eh]. For bank 2, the index will one of the following values: 08h, 09h, 0Ah, or 0Bh Write LUT entry value to Look-Up Table Data Register AUX[0Fh]. For a linear LUT, use the Look-Up table entries in Table 3-8, "S1D13503 Black-To-White Look-up Table For 4 Gray Shades," on page 26. Repeat steps 2 and 3 until all 4 LUT entries have been written. To display data using Bank 2, write 10b to AUX[0E] bits 7,6.
4. 5.
Table 3-8: S1D13503 Black-To-White Look-up Table For 4 Gray Shades Index
(hex)
Look-Up Table
(hex)
8 9 A B
0 5 A F
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 27
4-Level Gray Shade Mode
Green Look-Up Table Bank 0 2-bit pixel data
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit display data output
Bank 3
0 1 2 3
Bank Select bits [1:0] (Aux[0E] bits [7:6])
Note: the above depiction is intended to show the display data output path only. The CPU R/W access to the individual Look-Up Tables is not affected by the various `banking' configurations. Figure 5: 4-Level Gray-Shade Mode Look-Up Table Architecture
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 28
Epson Research and Development Vancouver Design Center
3.2.5 Four Colors (Two Bits/Pixel in Color Mode)
When the S1D13503 is configured for two bit pixels in color mode, each pixel can index one of four color LUT entries. The 16 LUT entries are divided into four separate Look-Up tables or banks, each having four entries (see Figure 6). The following examples show how to program and select these banks. Example 7: 1. In 4 color mode, program red bank 3 LUT entries and select for use.
Determine location of bank 3 in the red LUT. The first four entries in the 16 entry LUT represent the first bank (bank 0). The following four entries in the LUT represent the second bank (bank 1), etc. Consequently bank 3 starts at LUT index 0Ch as shown below:
start of bank index = bank number x 4 start of bank 3 = 3 x 4 = 12 = 0Ch
Red Bank 3 is shown in Figure 6. 2. Write LUT index and Red LUT selection to Look-Up Table Address Register AUX[0Eh]. AUX[0Eh] = LUT index `OR' 0001 0000b For bank 3, the index will one of the following values: 0Ch, 0Dh, 0Eh, or 0Fh, so the value written to AUX[0Eh] will be one of the following: 1Ch, 1Dh, 1Eh, or 1Fh. This selects the Red LUT only, indexes C, D, E and F. Write LUT entry value to Look-Up Table Data Register AUX[0Fh]. For a linear LUT, use the Look-Up table entries in Table 3-9, "S1D13503 Low To High Intensity Color Look-Up Table For 4 Colors," on page 28. Repeat steps 2 and 3 until all 4 LUT entries have been written. To display data using Red Bank 3 write 11b to AUX[0F] bits 7,6: AUX[0Fh] = original AUX[0Fh] `OR' 1100 0000b
3.
4. 5.
Table 3-9: S1D13503 Low To High Intensity Color Look-Up Table For 4 Colors Index
(hex)
Look-Up Table
(hex)
C D E F
0 5 A F
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 29
4-Level Color Mode RED Look-Up Table Bank 0 2-bit pixel data
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `RED' display data output
Bank 3 Red Bank Select bits [1:0] (Aux[0F] bits [7:6])
0 1 2 3
GREEN Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `GREEN' display data output
Bank 3 Green Bank Select bits [1:0] (Aux[0E] bits [7:6])
0 1 2 3
Blue Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `BLUE' display data output
Bank 3 Blue Bank Select bits [1:0] (Aux[0F] bits [5:4])
0 1 2 3
Figure 6: 4-Level Color Mode Look-Up Table Architecture
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 30
Epson Research and Development Vancouver Design Center
3.2.6 Sixteen Gray Shades (Four Bits/Pixel in Monochrome Mode)
When the S1D13503 has 4-bit monochrome pixels, each pixel can index into one of 16 LUT entries. The LUT bank bits are ignored in this mode. 16-Level Gray Shade Mode Green Look-Up Table 16x4
0 1 2 3 C D E F
4-bit pixel data ( P3, P2, P1, P0 )
msb lsb
4-bit Look-Up Table data output
Figure 7: 16-Level Gray-Shade Mode Look-Up Table Architecture
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 31
3.2.7 Sixteen Colors (Four Bits/Pixel in Color Mode)
When the S1D13503 has 4-bit color pixels, each pixel can index into each of the three color LUTs. The LUT bank bits are ignored in this mode. 16-Level Color Mode Red Look-Up Table 16x4
0 1 2 3 C D E F
4-bit pixel data
4-bit `RED' Look-Up Table data output
Green Look-Up Table 16x4
0 1 2 3 C D E F
4-bit `GREEN' Look-Up Table data output
Blue Look-Up Table 16x4
0 1 2 3 C D E F
4-bit `BLUE' Look-Up Table data output
Figure 8: 16-Level Color Mode Look-Up Table Architecture
Table 3-10: Simulation Of First 16 Entries Of Standard VGA Palette Address 00 01 02 03 04 05 06 07 Red 00 00 00 00 0A 0A 0A 0A Green 00 00 0A 0A 00 00 0A 0A Blue 00 0A 00 0A 00 0A 00 0A Address 08 09 0A 0B 0C 0D 0E 0F Red 00 00 00 00 0F 0F 0F 0F Green 00 00 0F 0F 00 00 0F 0F Blue 00 0F 00 0F 00 0F 00 0F
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 32
Epson Research and Development Vancouver Design Center
3.2.8 256 Colors (Eight Bits/Pixel in Color Mode)
When the S1D13503 has 8-bit color pixels, bits 7-5 represent the red LUT index, bits 4-2 represent the green LUT index, and bits 1-0 represent the blue LUT index (see Figure 9, "256-Level Color Mode Look-Up Table Architecture," on page 33). It is recommended that the three LUTs are programmed according to Table 3-5, "S1D13503 Color Look-up Table For 256 Color Mode," on page 23, and only bank 0 were used for each of the three colors. This method results in each color index inside the pixel to represent its respective color intensity (see Table 3-11 below).
Table 3-11: Examples Of 256 Pixel Colors Using Linear LUT Pixel Value
(binary)
Color black dark blue dark green dark cyan dark red dark magenta dark yellow gray
Pixel Value
(binary)
Color black bright blue bright green bright cyan bright red bright magenta bright yellow white
000 000 00 000 000 10 000 100 00 000 100 10 100 000 00 100 000 10 100 100 00 100 100 10
000 000 00 000 000 11 000 111 00 000 111 11 111 000 00 111 000 11 111 111 00 111 111 11
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 33
256-Level Color Mode
256 Color Data Format: 76543210 R2 R1 R0 G2 G1 G0 B1 B0
Red Look-Up Table Bank 0 3-bit pixel data (R2, R1, R0)
0 1 2 3 4 5 6 7
Bank 1
0 1 2 3 4 5 6 7
Bank Select Logic
4-bit `RED' display data output
Red Bank Select bit (Aux[0F] bit 6) Green Look-Up Table Bank 0 3-bit pixel data (G2, G1, G0)
0 1 2 3 4 5 6 7
Bank 1
0 1 2 3 4 5 6 7
Bank Select Logic
4-bit `GREEN' display data output
Green Bank Select bit (Aux[0E] bit 6)
2-bit pixel data (B1, B0)
Blue Look-Up Table Bank 0
0 1 2 3
Bank 1
0 1 2 3
Bank 2
0 1 2 3
Bank Select Logic
4-bit `BLUE' display data output
Bank 3
0 1 2 3
Blue Bank Select bits [1:0] (Aux[0F] bits [5:4])
Figure 9: 256-Level Color Mode Look-Up Table Architecture
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 34
Epson Research and Development Vancouver Design Center
4 DISPLAY MEMORY MODELS
This section includes a concise description of the Display Start Address Registers, followed by a description of display memory. Afterwards examples are provided, illustrating how to calculate the display memory model for a given display resolution and color/gray level mode. Once this model is calculated, examples on programming the Display Start Address Registers are provided.
4.1 Registers
Register bits discussed in this section are highlighted. AUX[01] Mode Register 0 I/O address = 0001b, Read/Write. DISP bit 1 Panel Mask XSCL LCDE Gray Shade / LCD Data Color Width Bit 0 Memory Interface RAMS
Memory Interface This bit selects between the 8-bit or 16-bit memory interface. When this bit = 0, the 16-bit memory interface is selected. When this bit = 1, the 8-bit memory interface is selected. If 16-bit bus interface (VD0 = 1 on RESET) or 256 color mode (AUX[03] bits 2-1 = 11) is selected, the Memory Interface bit is forced to 0 internally (16-bit). This bit goes low on RESET.
AUX[06] Screen 1 Display Start Address Register (LSB) I/O address = 0110b, Read/Write. Screen 1 Display Start Addr Bit 7 Screen 1 Display Start Addr Bit 6 Screen 1 Display Start Addr Bit 5 Screen 1 Display Start Addr Bit 4 Screen 1 Display Start Addr Bit 3 Screen 1 Display Start Addr Bit 2 Screen 1 Display Start Addr Bit 1 Screen 1 Display Start Addr Bit 0
AUX[07] Screen 1 Display Start Address Register (MSB) I/O address = 0111b, Read/Write. Screen 1 Display Start Addr Bit 15 Screen 1 Display Start Addr Bit 14 Screen 1 Display Start Addr Bit 13 Screen 1 Display Start Addr Bit 12 Screen 1 Display Start Addr Bit 11 Screen 1 Display Start Addr Bit 10 Screen 1 Display Start Addr Bit 9 Screen 1 Display Start Addr Bit 8
AUX[06] bits 7-0 Screen 1 Display Start Address Bits [15:0] AUX[07] bits 7-0 These 16 bits determine the Screen 1 Display Start Address. In an 8-bit memory configuration these bits set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most significant bits of a 17-bit start address (i.e., word access). Note The absolute address into display memory is determined by the Memory Mapping Address which is set by the reset state of VD13 - VD15. The Screen 1 Display Start Address is the memory address corresponding to the first displayed pixel (top left corner). In a dual panel configuration, screen 1 refers to the upper half of the display. While in a single panel configuration, screen 1 refers to the first screen of the Split Screen Display feature where two different images (screen 1 and screen 2) can be displayed at the same time on one display.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 35
AUX[08] Screen 2 Display Start Address Register (LSB) I/O address = 1000b, Read/Write. Screen 2 Display Start Addr Bit 7 Screen 2 Display Start Addr Bit 6 Screen 2 Display Start Addr Bit 5 Screen 2 Display Start Addr Bit 4 Screen 2 Display Start Addr Bit 3 Screen 2 Display Start Addr Bit 2 Screen 2 Display Start Addr Bit 1 Screen 2 Display Start Addr Bit 0
AUX[09] Screen 2 Display Start Address Register (MSB) I/O address = 1001b, Read/Write. Screen 2 Display Start Addr Bit 15 Screen 2 Display Start Addr Bit 14 Screen 2 Display Start Addr Bit 13 Screen 2 Display Start Addr Bit 12 Screen 2 Display Start Addr Bit 11 Screen 2 Display Start Addr Bit 10 Screen 2 Display Start Addr Bit 9 Screen 2 Display Start Addr Bit 8
AUX[08] bits 7-0 Screen 2 Display Start Address Bits [15:0] AUX[09] bits 7-0 These 16 bits determine the Screen 2 Display Start Address. In an 8-bit memory configuration these bits set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most significant bits of a 17-bit start address (i.e., word access). In a dual panel configuration, screen 2 refers to the lower half of the display. The Screen 2 Display Start Address is the memory address corresponding to the first displayed pixel in the first line of the lower half of the display. If screen 2 is started right after screen 1, the screen 2 display start address can be calculated with the following formula:
( ImageHorizontalResolution ) x ( ImageVerticalResolution ) x ( BytesPerPixel ) Screen2DisplayStartAddress ( hex ) = ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Screen1DisplayStartAddress MemoryInterfaceWidth 2 x ---------------------------------------------------------------- 8
In a single panel configuration, screen 2 refers to the second screen of the Split Screen Display Feature where two different images (screen 1 and screen 2) can be displayed at the same time on one display. The Screen 2 Display Start Address is the memory address corresponding to the first pixel of the second image stored in display memory. To display screen 2 refer to AUX[0A] Screen 1 Display Line Count Register (LSB) on page 45.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 36
Epson Research and Development Vancouver Design Center
4.2 Description
When displaying an image, the S1D13503 must read pixel data from display memory. This memory is organized to match the display resolution of the given LCD panel. To organize display memory, the following registers must be programmed: 1. 2. 3. Screen 1 Display Start Address Registers Screen 2 Display Start Address Registers Address Pitch Adjustment Register
For the first example, the Address Pitch Adjustment Register is programmed to zero. This means that no virtual display is available; for information on virtual displays see Section 5.1, "Virtual Displays" on page 40.
4.2.1 S5U13503B00C Evaluation Board Display Memory
There are several issues to consider when programming the Screen Display Start Address Registers for the S5U13503B00C evaluation board: * The S5U13503B00C is always set for 128k of display memory. This memory exists as two 64k banks at addresses D000:0000h to D000:FFFFh. To access bank 0, read from the base port address + 2. To access bank 1, write to base port address + 2. The values read from or written to base port address + 2 are not important. The start of bank 0 represents the top left corner of display memory. For the S5U13503B00C, the Screen Display Start Address Registers are always in reference to the display memory address D000:0000h, bank 0. Writing 0 to a Display Start Address Register will always refer to D000:0000h, bank 0. Although the S1D13503 can set the Memory Interface to 8 or 16 bits, the S5U13503B00C evaluation board must be set for 16 bits in order to access 128k of display memory. As a result, the Display Start Address Registers are word pointers, not byte pointers. To illustrate how to use a word pointer, refer to Example 8. In general, any system which uses more than 64k of display memory must always have the Memory Interface set to 16 bits. For the S5U13503B00C, calculate the required start address register value which refers to location D000:0000h, bank 1.
* *
Example 8:
Location D000:0000h bank 1 refers to the start of the second 64k bank of display memory. Consequently the start address is 10000h bytes (64k), or 8000h words. START ADDRESS[LSB] = 00h START ADDRESS[MSB] = 80h
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 37
4.2.2 Display Start Address Registers
This section illustrates how to properly calculate the values for the Screen Start Address Registers for a given LCD panel resolution. However, this section is limited to single panel displays; refer to Section 5.4.3, "Dual Panel LCD" on page 48 to program the Screen Start Address Registers for a dual panel display. In the following example, the Display Start Address Registers are programmed for a 16 color 320 x 240 single panel LCD display. The technique shown, however, can also be used to calculate the memory map of other resolutions. In addition, reference is made to the S5U13503B00C evaluation board; other hardware implementations of the S1D13503 may assign different display and port addresses from those of the S5U13503B00C. Refer to the S5U13503B00C Evaluation Board User's Manual for more information on these hardware issues. Example 9: Program the Display Start Address Registers for a single LCD panel; the display is attached to the S5U13503B00C evaluation board.
Normally images are loaded at the start of display memory (D000:0000h, bank 0), so the display start address registers must be set to 0000h words. AUX[06h] = 00h AUX[07h] = 00h Example 10: Program the Display Start Address Registers for a dual panel LCD. Refer to Section 5.4.3.1, "Displaying a Single Image on a Dual Panel" on page 50. Example 11: Determine if the S1D13503 implementation can support a 640 x 480 LCD with 4 colors. 1. Calculate the number of bytes per scan line:
pixels per scan line 640 --------------------------------------------- = -------- = 160 bytes per scan line pixels per byte 4
2.
Calculate the total number of bytes required for display memory:
( 160 bytes per scan line ) ( 480 scan lines ) = 76800 bytes
3.
Compare the required number of bytes with the amount of memory available to the S1D13503. * The S1D13503 has 128k available, so there is 131,072 bytes available. Since this number is greater than the 76,800 bytes required for 640 x 480 with 4 colors, the S1D13503 implementation can support a 640 x 480 LCD with 4 colors.
Note The memory required for 4 colors at 640 x 480 is the same as the memory required for 4 gray shades at 640 x 480. Consequently the S1D13503 implementation can also support a 640 x 480 LCD with 4 gray shades.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 38
Epson Research and Development Vancouver Design Center
4.3 Common Display Memory Requirements for LCD Panel Sizes:
The following is a list of memory requirements and memory maps for common LCD resolutions. Note that the memory required for 640 x 480 with 4 or 16 bits/pixel exceeds 128k and is therefore not supported on the S1D13503. Table 4-1: Memory Size Requirements Display Resolution Pixel Storage Colors/ Bits/Pixel Gray Shades 1 320 x 240 2 4 8 1 480 x 240 2 4 8 1 640 x 200 2 4 8 1 640 x 480 2 4 8 2 4 16 256 2 4 16 256 2 4 16 256 2 4 16 256 Memory Requirements Bytes 9,600 19,200 38,400 76,800 14,400 28,800 57,600 115,200 16,000 32,000 64,000 128,000 38,400 76,800 N/A N/A Hex 0000 2580 0000 4B00 0000 9600 0001 2C00 0000 3840 0000 7080 0000 E100 0001 C200 0000 3E80 0000 7D00 0000 FA00 0001 F400 0000 9600 0001 2C00 N/A N/A
Offset (hex) 0000 0050 Scan Line 0 Scan Line 1
Offset (hex) 004F 009F
4A60 4AB0
Scan Line 238 4AAF Scan Line 239 4AFF
Figure 10: Memory Map Example For 320 x 240 LCD Panel With 4 Colors/Gray Shades
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 39
Offset (hex) 0000 0000 0000 0140 Scan Line 0 Scan Line 1
Offset (hex) 0000 013F 027F
0001 2980 0001 2AC0
Scan Line 238 0001 2ABF Scan Line 239 0001 2BFF
Figure 11: Memory Map Example For 320 x 240 LCD Panel With 256 Colors
Offset (hex) 0000 0140 Scan Line 0 Scan Line 1
Offset (hex) 013F 027F
F780 F8C0
Scan Line 198 Scan Line 199
F8BF F9FF
Figure 12: Memory Map Example For 640 x 200 LCD Panel With 16 Colors/Gray Shades
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 40
Epson Research and Development Vancouver Design Center
5 ADVANCED TECHNIQUES
This section presents information on the following: * * * * * * virtual displays bitmaps and text displays reading and writing to the S1D13503 registers split screen displays panning and scrolling power saving
5.1 Virtual Displays
This section presents a detailed description of the Address Pitch Adjustment Register, followed by a description of a virtual display. Afterwards an example is given, showing how to create a virtual display.
5.1.1 Registers
Register bits discussed in this section are highlighted. AUX[0D] Address Pitch Adjustment Register I/O address = 1101b, Read/Write. Addr Pitch Adjustment Bit 7 bits 7-0 Addr Pitch Adjustment Bit 6 Addr Pitch Adjustment Bit 5 Addr Pitch Adjustment Bit 4 Addr Pitch Adjustment Bit 3 Addr Pitch Adjustment Bit 2 Addr Pitch Adjustment Bit 1 Addr Pitch Adjustment Bit 0
Address Pitch Adjustment Bits [7:0] This register controls the virtual display by setting the numerical difference between the last address of a display line, and the first address in the following line. If the Address Pitch Adjustment is not equal to zero, then a virtual screen is formed. The size of the virtual screen is only limited by the available display memory. The actual display output is a window that is part of the whole image stored in the display memory. For example, with 128K of display memory, a 640x400 16-gray image can be stored. If the output display size is 320x240, then the whole image can be seen by changing display starting addresses through AUX[06] and [07], and AUX[08] and [09]. Note that a virtual screen can be produced on either a single or dual panel. In 8-bit memory interface, if the Address Pitch Adjustment is not equal to zero, a virtual screen with a line length of (Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents of a window (Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined by AUX[06] and [07], and AUX[08] and [09]. In 16-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with a line length of 2x(Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents of a window 2x(Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined by AUX[06] and [07], and AUX[08] and [09].
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 41
5.1.2 Description
The S1D13503 can be programmed to wrap memory offsets in such a way that the physical display behaves as a viewport into a much larger "virtual" memory space. This viewport can be panned and/or scrolled to display this larger memory space. Referring to the figure below, a virtual image of 640x480 can be viewed by navigating the 320x240 viewport around the image by panning and scrolling.
320x240 Viewport 640x480 "Virtual" Display
Figure 13: Moving A Viewport Inside A Virtual Display To create a virtual display, the Address Pitch Adjustment Register must be programmed to indicate the horizontal size of the larger, "virtual" image stored in display memory. The Address Pitch Adjustment Register tells the S1D13503 how many bytes or words of display memory are part of the nonvisible region of display memory (see Example 12). Example 12: Program the Address Pitch Adjustment Register to support a 16 color 640 x 480 virtual display on a 320 x 240 LCD panel; the Memory Interface is 16 bits. 1. 2. 3. Initialize the S1D13503 registers for a 320x240 panel. Determine whether the Address Pitch Adjustment Register refers to bytes or words. Since the Memory Interface is set to 16 bits, the Address Pitch Adjustment Register refers to words. Determine the number of pixels per unit referred to by the Address Pitch Adjustment Register. The Address Pitch Adjustment Register refers to units of words, so find the number of pixels per word.
16 colors => 4 bits per pixel 4 bits per pixel => 2 pixels per byte pixels per word = ( pixels per byte ) x 2 = 2 x 2 = 4 pixels per word
4.
Calculate the number of pixels on a horizontal scan line not visible.
( virtual display width in pixels ) - ( panel width in pixels ) = 640 - 320 = 320 hidden pixels
Consequently on a screen update the S1D13503 will show the first 320 of 640 pixels, and then ignore the remaining 320 pixels in order to reach the next scan line. 5. Program the Address Pitch Adjustment Register
number of hidden horizontal pixels 320 ----------------------------------------------------------------------------------- = -------- = 80 words = 50h words pixels per word 4
Therefore AUX[0Dh] = 50h 6. To view the rest of the image refer to Section 5.5, "Panning and Scrolling" on page 52, keeping in mind that the horizontal width is 640 pixels, not 320.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 42
Epson Research and Development Vancouver Design Center
5.2 Bitmaps and Text Displays
For the scope of this guide, a bitmap is a data structure which represents the image shown on the LCD. The bitmap includes the dimensions of the image, and the color or gray shade palette used to program the lookup table. Text is shown by creating a font, which in this example is a series of bitmaps, one bitmap per alphanumeric character. Example 13: Display the word "TEXT" on a 256 color 320 x 240 LCD panel; the Memory Interface is 16 bits. 1. Define the font for the letters `T', `E', and `X'. Each character is 8x8 pixels, with at least one horizontal and vertical side left blank for spacing.
Figure 14: Font For The Message "TEXT" 2. 3. 4. Program the lookup table. See Example 3, "Initialize the Look-Up Table for 256 Colors (Bank 0 Only)," on page 23. Calculate the display memory map. See Figure 11, "Memory Map Example For 320 x 240 LCD Panel With 256 Colors," on page 39. Write font to display memory. In a general purpose program the entire bitmapped font would be placed in an array. As characters are to be displayed, the program would choose the appropriate bitmap, select the proper position on the screen, and write to display memory. For this example assume that the program has already selected the proper bitmaps and the correct positions in display memory (there is a detailed programming example later in this guide; see Section 7.3, "Advanced Functions" on page 66). Each highlighted pixel in the text bitmap will be shown at maximum intensity, which is pixel value 0FFh. The text, for simplicity, will be shown in the upper left corner of the screen. When the program has completed writing the pixels for the word "TEXT", the display memory will have the data shown in Figure 15. In this figure the bytes are grouped within vertical lines.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 43
Offset (hex) 0000 0140 0280 03C0 0500 0640 0780 08C0
F F F F 0 0 0 0 0 0 0 0 0 0 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F F F F F F F F F F F 0 0 F F F F F F F F F F F F F F 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F F F F F F F F F F F 0 0 F F F F F F F F F F F F F F 0 0 F F 0 0 0 0 F F 0 0 0 0 F F 0 0 F F 0 0 F F F F F F 0 0 F F 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F 0 0 0 0 0 0 F F F F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 F F F F 0 0 0 0 0 0 0 0 F F 0 0 F F F F F F 0 0 0 0 F F F F 0 0 0 0 0 0 F F F F F F F F 0 0 0 0 0 0 0 0 0 0 F F F F 0 0 0 0 0 0 0 0 0 0 F F F F F F F F 0 0 0 0 F F F F F F 0 0 0 0 F F F F 0 0 F F F F 0 0 0 0 0 0 0 0 F F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 F F F F 0 0 0 0 0 0 0 0 0 0 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F F F F F F F F F F F 0 0 F F F F F F F F F F F F F F 0 0 F F 0 0 0 0 0 0 0 0 0 0 F F 0 0 F F F F 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Offset (hex) 001F 015F 029F 03DF 051F 065F 079F 08DF
Figure 15: Display Memory Contents For Message "Text" In 256 Color Mode
5.3 Mapping of Registers
The S1D13503 has an internal set of 16-/8-bit read/write registers which configure it for various modes of operation. The registers can be accessed in two ways; Indexed Addressing and Direct Addressing. Note Refer to the S1D13503 Hardware Functional Specification (Document number X18A-A-001-xx) for more information on the S1D13503 registers.
5.3.1 Indexed Mapping
This method requires only two sequential I/O address locations starting from the base I/O address. The base I/O address is determined by the power-on state of the SRAM data lines VD[4 through 12]. See "Summary of Configuration Options" in the S1D13503 Hardware Functional Specification, Drawing Office No. X18A-A-001-xx. The S5U13503B00C Evaluation Board uses three sequential I/O addresses which are defined as Index Address, Index Data, and Memory Banking. To access registers using this method, an Index Address must be written to the first I/O address location allowing data to be written/read to/from the second I/O address. The Memory Banking port is specific to the S5U13503B00C implementation and is used to select one of two 64K display memory banks; a read from this port selects bank 0, and a write to this port selects bank 1. Note that the values read from or written to the Memory Banking port are not important.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 44
Epson Research and Development Vancouver Design Center
Example 14: Write 12h to register 08h on the S5U13503B00C evaluation board; the base port address is 310h, and indexed port mapping is used. 1. Write 08h to the index register The index register is at base port address + 0 = 310h. MOV DX,310h MOV AL,08h OUT DX,AL 2. Write 12h to the data register The data register is at base port address + 1 = 311h. MOV DX,311h MOV AL,12h OUT DX,AL
5.3.2 Direct Mapping
This method of addressing requires 16 sequential I/O addresses starting from the base I/O address. The base I/O address is determined by the power-on state of the SRAM data lines VD[7 through 12]. See "Summary of Configuration Options" in the S1D13503 Hardware Functional Specification, Drawing Office No. X18A-A-001-xx. To access the internal 16 registers of the S1D13503, simply perform I/O read/write functions to the absolute address as defined in the previous paragraph. There is no memory banking available in direct addressing mode. Example 15: Write 12h to register 08h on the S5U13503B00C evaluation board; the base port address is 310h, and direct port mapping is used. 1. Calculate the port address for register 08h.
port address = 310h + 8h = 318h
2.
Write the value 12h to port address 318h. MOV DX,318h MOV AL,12h OUT DX,AL
Note The S5U13503B00C is normally configured for indexed mapping, not direct mapping. Refer to the S5U13503B00C Evaluation Board User's Manual for more information configuring the S5U13503B00C board for indexed or direct mapping.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 45
5.4 Split Screen
This section describes how to create a split screen for both single and dual LCD panels. For single panel displays, the Screen 1 Display Line Count Registers are used. For dual panel displays, the Screen 2 Display Start Address Registers are used.
Registers
AUX[0A] Screen 1 Display Line Count Register (LSB) I/O address = 1010b, Read/Write. Screen 1 Display Line Count Bit 7 Screen 1 Display Line Count Bit 6 Screen 1 Display Line Count Bit 5 Screen 1 Display Line Count Bit 4 Screen 1 Display Line Count Bit 3 Screen 1 Display Line Count Bit 2 Screen 1 Display Line Count Bit 1 Screen 1 Display Line Count Bit 0
AUX[0B] Screen 1 Display Line Count Register (MSB) I/O address = 1011b, Read/Write. Screen 1 Display Line Count Bit 9 Screen 1 Display Line Count Bit 8
n/a
n/a
n/a
n/a
n/a
n/a
AUX[0A] bits 7-0 Screen 1 Display Line Count Bits [9:0] AUX[0B] bits 1-0 These bits are the eight LSB of a 10-bit value used to determine the number of lines displayed for screen 1. The remaining lines will automatically display from the screen 2 display start address. The 10-bit value programmed is the number of display lines -1. This register is used to enable the split screen display feature (single panel only) where two different images can be displayed at the same time on one display. For example; AUX[0A] = 20h for a 320x240 display system. The display will display 20h+1 = 33 lines on the upper part of the screen as dictated by the screen 1 display start address registers (AUX[06] and AUX[07]), and 240 - 33 = 207 lines will be displayed on the lower part of the screen as dictated by the screen 2 display start address registers (AUX[08] and AUX[09]). Two different images can be displayed when using a dual panel configuration by changing the screen 2 display start address. However, by using this method screen 2 is limited to the lower half of the display. This register is ignored in dual panel mode. Note See Section 4.2.2, "Display Start Address Registers" on page 37 for additional register descriptions.
5.4.1 Description
A split screen is generally considered as the presentation of two different images on the screen. Image 1 is shown on the top half and image 2 is shown on the bottom half of the screen. The system is always in split screen mode, on a single panel image 2 is displayed off screen; on a dual panel image 2 becomes the lower half of the panel.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 46
Epson Research and Development Vancouver Design Center
5.4.2 Single Panel LCD
The following is the procedure to show a split screen image on a 16 color 320 x 240 single panel LCD. For this example the S5U13503B00C is used with the Memory Interface set to 16 bits (required for 128k of display memory). In addition, the two images shown on the split screen are each 320 x 240; only a portion of each image is shown. 1. Determine whether the Display Start Address Registers refer to bytes or words. Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when addresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary (the least significant bit of the memory address must be 0). Calculate the number of bytes per scan line.
16 colors => 4 bits per pixel 4 bits per pixel => 2 pixels per byte pixels per scan line 320 number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line pixels per byte 2
2.
3.
Determine the display memory location for image 1. For simplicity, assign the beginning of display memory as the starting address of image 1 (see Figure 16). For the S5U13503B00C, this address is D000:0000h, bank 0. Display Memory Screen 1 Display Start Address D000:0000h, bank 0 Image 1
Screen 2 Display Start Address D000:9600h, bank 0 (for this example) Image 2
Figure 16: Memory Map For Split Screen 4. Program the Screen 1 Display Start Address Register to point to the beginning of image 1. Since image 1 is at the beginning of display memory, program the Screen 1 Display Start Address Register to 0000h. AUX[06h] = 00h AUX[07h] = 00h Calculate the total number of bytes required for image 1.
( bytes per scan line ) x ( number of scan lines for image 1 ) = 160 x 240 = 38400 bytes = 9600h bytes
5.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 47
6.
Determine the display memory location for image 2. Place image 2 immediately after image 1 (see Figure 16). Assign the starting address for image 2 as follows:
image 2 address = ( base display memory address ) + ( size of image 1 ) = { D000:0000h, bank 0 } + 0000:9600h = { D000:9600h, bank 0 }
Note that if the image 2 address is larger than D000:FFFFh, then switch to bank 1, reset the segment to D000h, and keep the offset. For example, if the image 2 address were {D001:9200h, bank 0}, then this address must be changed to {D000:9200h, bank 1}. 7. Program the Screen 2 Display Start Address Register to point to the beginning of image 2. Image 2 is placed right after image 1, as shown below:
size of image 1 in bytes Screen 2 Display Start Address = Screen 1 Display Start Address + -------------------------------------------------------2 bytes per word 9600h = 0000h + -------------- = 4B00h 2
AUX[08h] = 00h AUX[09h] = 4Bh 8. Program the Screen 1 Display Line Count Register. The Display Line Count Register indicates how many lines of the first screen should be shown minus 1. By changing the line count, image 2 appears to move up or down the display. * If the line count is set to the maximum number of visible scan lines - 1, only image 1 is shown.
visible scan lines - 1 = 240 - 1 = 239 = 00EFh
AUX[0Ah] = LSB of (visible scan lines - 1) = EFh AUX[0Bh] = MSB of (visible scan lines - 1) = 00h * If the line count is set to 0, then the first scan line of image 1 is shown followed by the first part of image 2. It is not possible to show only image 2 by changing the line count. If only image 2 needs to be shown, reprogram the Screen 1 Display Start Address Registers to point to the beginning of image 2. Once both Screen 1 and 2 Display Start Address Registers point to the same image, the line count has no visible effect. AUX[0Ah] = 00h AUX[0Bh] = 00h
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 48
Epson Research and Development Vancouver Design Center
*
If the line count is set to 99, then the first 100 scan lines of image 1 are shown, following by the first part of image 2 (see Figure 17). AUX[0Ah] = 63h (99 decimal) AUX[0Bh] = 00h Scan Line 0 ... Scan Line 99 Scan Line 100 ... Scan Line 239 Screen 1 Display Line Count Register = 99 lines Figure 17: 320 x 240 Single Panel For Split Screen Image 2 Image 1
9.
Write both image 1 and image 2 to their respective locations in display memory.
5.4.3 Dual Panel LCD
The following is the procedure to show a split screen image on a 4 gray shade 640 x 480 dual panel LCD. For this example the S5U13503B00C is used with the Memory Interface set to 16 bits (required for 128k of display memory). In addition, the two images shown on the split screen are each 640 x 240. 1. Determine whether the Display Start Address Registers refer to bytes or words. Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when addresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary (the least significant bit of the memory address must be 0). Calculate the number of bytes per scan line.
4 gray shades => 2 bits per pixel 2 bits per pixel => 4 pixels per byte pixels per scan line 640 number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line pixels per byte 4
2.
3.
Determine the display memory location for image 1. For simplicity, assign the beginning of display memory as the starting address of image 1 (see Figure 16). For the S5U13503B00C, this address is D000:0000h, bank 0. Program the Screen 1 Display Start Address Register to point to the beginning of image 1. Since image 1 is at the beginning of display memory, program the Screen 1 Display Start Address Register to 0000h. AUX[06h] = 00h AUX[07h] = 00h Calculate the total number of bytes required for image 1.
( bytes per scan line ) x ( number of scan lines for image 1 ) = 160 x 240 = 38400 bytes = 9600h bytes
4.
5.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 49
6.
Determine the display memory location for image 2. Place image 2 immediately after image 1 (see Figure 16). Assign the starting address for image 2 as follows:
image 2 address = ( base display memory address ) + ( size of image 1 ) = { D000:0000h, bank 0 } + 0000:9600h = { D000:9600h, bank 0 }
Note that if the image 2 address is larger than D000:FFFFh, then switch to bank 1, reset the segment to D000h, and keep the offset. For example, if the image 2 address were {D001:9200h, bank 0}, then this address must be changed to {D000:9200h, bank 1}. 7. Program the Screen 2 Display Start Address Register to point to the beginning of image 2. Image 2 is placed right after image 1, as shown below:
size of image 1 in bytes Screen 2 Display Start Address = Screen 1 Display Start Address + -------------------------------------------------------2 bytes per word 9600h = 0000h + -------------- = 4B00h 2
AUX[08h] = 00h AUX[09h] = 4Bh 8. Write both image 1 and image 2 to their respective locations in display memory.
Notes
When using a dual panel, the Screen 1 Display Line Count Register is ignored by the S1D13503. Once the two Display Start Address Registers are programmed, the top panel will show the beginning of image 1, and the bottom panel will show the beginning of image 2 (see Figure 18). Scan Line 0 ... Scan Line 239 Scan Line 240 ... Scan Line 479 Image 2 Image 1
Screen 1 Display Line Count is ignored; Image 1 always has half the total number of scan lines (240 in this example). Figure 18: 640 x 480 Dual Panel For Split Screen
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 50
Epson Research and Development Vancouver Design Center
Each image can be scrolled or panned by appropriate programming of the respective Display Start Address Registers. The following are some examples: * To scroll image 1 up, the Screen 1 Start Address Register must point to the following scan line.
number of bytes per scan line Screen 1 Display Start Address = Screen 1 Display Start Address + ---------------------------------------------------------------------2 bytes per word
AUX[06h] = LSB of Screen 1 Display Start Address AUX[07h] = MSB of Screen 1 Display Start Address * To scroll image 2 down, the Screen 2 Start Address Register must point to the previous scan line.
number of bytes per scan line Screen 2 Display Start Address = Screen 2 Display Start Address - ---------------------------------------------------------------------2 bytes per word
AUX[08h] = LSB of Screen 2 Display Start Address AUX[09h] = MSB of Screen 2 Display Start Address * To pan image 1 to the right by a group of pixels, the Screen 1 Start Address Register must be increased by 1.
Screen 1 Display Start Address = Screen 1 Display Start Address + 1
AUX[06h] = LSB of Screen 1 Display Start Address AUX[07h] = MSB of Screen 1 Display Start Address See Section 5.5.2, "Panning Right and Left" on page 52 for more information. * To pan image 2 to the left by a group of pixels, the Screen 2 Start Address Register must be decreased by 1.
Screen 2 Display Start Address = Screen 2 Display Start Address - 1
AUX[08h] = LSB of Screen 2 Display Start Address AUX[09h] = MSB of Screen 2 Display Start Address See Section 5.5.2, "Panning Right and Left" on page 52 for more information.
5.4.3.1 Displaying a Single Image on a Dual Panel
The following is the procedure to show a single image on a dual panel LCD. In this procedure the single image is broken into two smaller images; the first half of the image is placed on the top panel and the second half is placed on the bottom panel. For this example the S5U13503B00C is used with a 4 gray shade 640 x 480 dual panel LCD; the Memory Interface is set to 16 bits to support 128k of display memory. 1. Determine whether the Display Start Address Registers refer to bytes or words. Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when addresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary (the least significant bit of the memory address must be 0). Calculate the number of bytes per scan line.
4 gray shades => 2 bits per pixel 2 bits per pixel => 4 pixels per byte pixels per scan line 640 number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line pixels per byte 4
2.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 51
3.
Determine the display memory location for the first half of the image. For simplicity, assign the beginning of display memory as the starting address of the image's first half (see Figure 19). For the S5U13503B00C, this address is D000:0000h, bank 0. Display Memory Screen 1 Display Start Address
First half of Image
Screen 2 Display Start Address
Second half of Image
Figure 19: Memory Map For A Dual Panel Showing A Single Image 4. Program the Screen 1 Display Start Address Register to point to the beginning of the first half of the image. Since the first half is at the beginning of display memory, program the Screen 1 Display Start Address Register to 0000h. AUX[06h] = 00h AUX[07h] = 00h Determine the size of the image's first half.
number of scan lines in display 480 vertical size of first half of image = vertical size of panel 1 = -------------------------------------------------------------------------- = -------- = 240 scan lines 2 2 display width in pixels 640 size = ----------------------------------------------------- x ( number of scan lines in first half of image ) = -------- x 240 = 38400 bytes = 9600h bytes pixels per byte 4
5.
6.
Determine the display memory location for the second half of the image. Place the second half of the image immediately after the first half (see Figure 19). Assign the starting address for the second half as follows:
address of second half of image = ( base display memory address ) + ( size of first half of image ) = { D000:0000h, bank 0 } + 0000:9600h = { D000:9600h, bank 0 }
Note that if the address of the second half of the image is larger than D000:FFFFh, then switch to bank 1, reset the segment to D000h, and keep the offset. For example, if the address of the second half of the image were {D001:9200h, bank 0}, then this address must be changed to {D000:9200h, bank 1}.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 52
Epson Research and Development Vancouver Design Center
7.
Program the Screen 2 Display Start Address Register to point to the beginning of the second half of the image. The second half of the image is placed right after the first half, as shown below:
size of first half of image in bytes Screen 2 Display Start Address Register = Screen 1 Display Start Address Register + -------------------------------------------------------------------------------2 bytes per word = 9600h 0000h + -------------- = 4B00h 2
AUX[08h] = 00h AUX[09h] = 4Bh 8. Write both the first and second halves of the image to their respective locations in display memory.
5.5 Panning and Scrolling
Panning and scrolling are typically used to show an image which is too large to be shown completely on an LCD panel. Although the image is stored entirely in display memory, only a small portion is actually visible on the LCD panel. This visible portion is called the viewport; the user moves this viewport over different portions of the image by panning and scrolling. Panning moves the viewport right or left. Scrolling moves the viewport up or down.
5.5.1 Initialization
To pan and scroll over a large image, the S1D13503 registers must first be initialized and the image written to display memory. To do so, initialize the registers as described in Section 2, "INITIALIZING THE S1D13503" on page 10, but with the following exception: the Address Pitch Adjustment Register in the S1D13503 must be set to create a virtual display; see Section 5.1, "Virtual Displays" on page 40 for more information.
5.5.2 Panning Right and Left
To pan to the right, increase the value in the Screen 1 Display Start Address Register. To pan to the left, decrease the value in the Screen 1 Display Start Address Register. Note that the S1D13503 can pan right or left by either 1, 2, 4, 8, or 16 pixels. This is because the Screen 1 Display Start Address Register refers to either bytes or words (see Section 4.2.1, "S5U13503B00C Evaluation Board Display Memory" on page 36), and a byte can represent 1, 2, 4, or 8 pixels, and so a word can represent 2, 4, 8, or 16 pixels; see Table 5-1 below: Table 5-1: Smallest Number Of Pixels For Panning Memory Interface Colors/ Gray Levels 2 8 bits 4 16 256 2 16 bits 4 16 256 Pixels per Byte 8 4 2 1 8 4 2 1 Smallest Number of Pixels for Panning 8 4 2 1 16 8 4 2
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 53
5.5.3 Scrolling Up and Down
To scroll up, increase the value in the Screen 1 Display Start Address Register by the number of bytes in one virtual scan line. To scroll down, decrease the value in the Screen 1 Display Start Address Register by the number of bytes in one virtual scan line. A virtual scan line is in reference to a virtual display, in which an image larger than the physical size of the LCD is stored. The number of bytes in a virtual scan line is the number of bytes required to store one horizontal line of pixels in the virtual image. Example 16: Scroll down one line for a 16 gray shade 640 x 200 virtual image using a 320 x 240 single panel LCD. The Memory Interface is set to 16 bits to support 128k of display memory. Also describe how to scroll in a dual panel LCD. 1. Calculate the number of bytes in a virtual scan line.
number of horizontal pixels in virtual image 640 pixels per scan line --------------------------------------------------------------------------------------------------------- = ------------------------------------------------------- = 320 bytes per scan line number of pixels per word 2 pixels per byte
2.
Add the number of words in a virtual scan line to the Screen 1 Display Start Address Register. In this example the Screen 1 Display Start Address points to the beginning of the image.
number of bytes in a virtual scan line Screen 1 Display Start Address = Screen 1 Display Start Address + ---------------------------------------------------------------------------------------2 bytes per word 320 = 0000h + -------2 = 00A0h
3.
Program the Screen 1 Display Start Address. AUX[06h] = A0h AUX[07h] = 00h This step is for dual panels only. Add the number of words in a virtual scan line to the Screen 2 Display Start Address Register. In this example the Screen 2 Display Start Address has previously been initialized as described in Section 5.4.3.1, "Displaying a Single Image on a Dual Panel" on page 50.
number of bytes in a virtual scan line Screen 2 Display Start Address = Screen 2 Display Start Address + ---------------------------------------------------------------------------------------2 bytes per word
4.
5.
This step is for dual panels only. Program the Screen 2 Display Start Address. AUX[08h] = least significant byte of "Screen 2 Display Start Address" AUX[09h] = most significant byte of "Screen 2 Display Start Address"
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 54
Epson Research and Development Vancouver Design Center
5.6 Power Saving
The following section introduces the power saving capabilities of the S1D13503. A detailed description of the Power Save Register is provided, followed by a description of the power save modes.
5.6.1 Registers
Register bits discussed in this section are highlighted. AUX[03] Mode Register 1 I/O address = 0011b, Read/Write PS Bit 1 bits 7-6 PS Bit 0 LCD Signal LUT State Bypass LCD Data Width Bit 1 BW / 256 colors Color Mode Line Byte Count Bit 8
PS Bits [1:0] Selects the Power Save Modes as shown in the following table. The PS bits [1:0] go low on RESET. Table 5-2: Power Save Mode Selection PS1 0 0 1 1 PS0 0 1 0 1 Mode Activated Normal Operation Power Save Mode 1 Power Save Mode 2 Reserved
For more details refer to "Power Save Modes" in the S1D13503 Hardware Functional Specification, Drawing Office No. X18A-A-001-xx.
5.6.2 Power Save Modes
Two software-controlled Power Save Modes have been incorporated into the S1D13503 to accommodate the important need for power reduction in the hand-held devices market. These modes can be enabled by setting the 2 Power Save bits (AUX[03h] bits 7-6). The various settings are: Table 5-3: Power Save Mode Selection Bit 7 Bit 6 0 0 1 1 0 1 0 1 Mode Activated Normal Operation Power Save Mode 1 Power Save Mode 2 Reserved
5.6.2.1 Power Save Mode 1
Power Save Mode 1 would typically be used when power savings are required and display memory accesses may occur. The disadvantage is that since the oscillator is running, this mode consumes more power that Power Save Mode 2.
5.6.2.2 Power Save Mode 2
Power Save Mode 2 is typically used when display memory accesses would not occur.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 55
5.6.2.3 Power Save Mode Function Summary
Table 5-4: Power Save Mode Function Summary Function Display Active? I/O Access Possible? Memory Access Possible? Sequence Controller Running? Internal Oscillator Disabled? Normal (Active) Yes Yes Yes Yes No Power Save Mode (PSM) PSM1 State 1 State 2 No Yes Yes No No No Yes No No No PSM2 No Yes No No Yes
Note 1. When programming the PS bits perform a read/modify/write operation so as not to destroy any other data in the register. 2. Refer to the programming example in Advanced Functions on page 66.
5.6.2.4 Programming to Enter Power Down Mode
If the LCDENB pin is used to control an external LCDBIAS power supply, the following sequence is recommended to prevent damage to the panel. Panel damage can occur if the LCDBIAS is present without active panel sync signals. Note the LCDENB pin is controlled by AUX[01h] bit 4 (LCDE). 1. 2. 3. 4. Write `0' to bit 7 of AUX[01h] to turn off the display. Write to bit 4 of AUX[01h] with value 'x' as appropriate to disable the specific power supply design. For the S5U13503B00C, write `0' to disable the power supply. Wait until the LCDBIAS power supply reaches zero volts. This delay time is dependent upon the specific power supply design, as well as the display's electrical characteristics. For the S5U13503B00C, this time is about 0.5 seconds. Enter power saving mode by writing the appropriate bits 7-6 of AUX[03h].
5.6.2.5 Programming to Exit Power Down Mode
When the LCDENB pin is used to control an external LCDBIAS power supply, the following sequence is recommended to exit power down mode. Note the LCDENB pin is controlled by AUX[01h] bit 4 (LCDE). 1. 2. 3. Exit power saving mode by writing 00b to bits 7-6 of AUX[03h]. Write to bit 4 of AUX[01h] with value 'x' as appropriate to enable the specific power supply design. For the S5U13503B00C, write `1' to enable the power supply. Note that no delay is required before applying power. Write `1' to bit 7 of AUX[01h] to turn on the display.
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 56
Epson Research and Development Vancouver Design Center
6 IDENTIFYING THE S1D13503
To identify the LCD controller upon power up / reset, perform the following steps: 1. 2. Power up LCD controller. Read AUX[0Eh], bits 5-4. Refer to Table 6-1 below to decode chip ID. Table 6-1: ID Bit Usage Chip S1D13503 Power On or RESET reserved S1D13502 S1D13502 Aux[0E] bit 5 0 0 1 1 bit 4 0 1 0 1
Note If the registers have already been initialized after power up, the ID bits in AUX[0Eh] cannot be used since these bits are also used for the RGB index. It is recommended to always store the chip ID immediately after power up and before any register initialization.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 57
7 PROGRAMMING THE S1D13503
The purpose of this section is to show how to program the S1D13503 exercising the specific capabilities of this chip. A series of functions written in `C' will be presented, each illustrating a basic feature of the S1D13503. These functions are written for the S5U13503B00C evaluation board, and are combined under a menu-driven program called 13503DEMO.EXE. Note The sample code will not run on a display larger than 320 x 240, and will use either 256 colors or 16 gray shades in most of the examples. This program accepts the following command line options: 13503DEMO t=n x=n y=n d=n i=n p=n [f=n] [/?] where: t = SINGLE | DUAL x = horizontal panel size in pixels from 1 to 320 (decimal) y = vertical panel size in pixels from 1 to 240 (decimal) d = COLOR | MONO i = 4 | 8 (4 bit or 8 bit interface to panel) p = 300 | 310...360 | 370 (port address in hex) (indexed I/O addressing selected by default) f = 1 | 2 (format for color 8 bit panel interface) /? = show this help screen For example, if there is a 320 x 240 color single panel LCD, 8 bit interface, format 2, with a port address of 310h, type 13503DEMO t=SINGLE x=320 y=240 d=COLOR i=8 p=310 f=2 When 13503DEMO is started, output will be sent to the standard output device. This output will present a menu of numbered options: S1D13503/S5U13503B00C DEMO PROGRAM Press 1 to read registers Press 2 to show color/gray shade bar Press 3 to show split screen Press 4 to show panning and scrolling Press 5 to start power saving Press ESC to quit Figure 20: Display For 13503DEMO.EXE
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 58
Epson Research and Development Vancouver Design Center
7.1 Main Loop Code
//------------------------------------------------------------------------// // FUNCTION: main() // // DESCRIPTION: Start of demo program. // // INPUTS: Command line arguments. // RETURN VALUE: None. // //------------------------------------------------------------------------void main(char argc, char **argv) { int ch; CheckArguments(argc, argv); printf("Initializing\n"); Initialize(); SetDisplay(OFF); ClearLCDScreen(); switch (GetID(PanelPortAddr)) { case ID_13502: printf("Detected S1D13502.\n\n"); Quit(); break; case ID_13502: printf("Detected S1D13502.\n\n"); Quit(); break; case ID_13503: printf("Detected S1D13503.\n"); break; default: printf("ERROR: Could not detect chip.\n\n"); Quit(); break; } ShowMenu(); while ((ch = getch()) != ESC) { switch (ch) { case '1': ShowRegisters();
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 59
break; case '2': GrayShadeBars(); break; case '3': SplitScreen(); break; case '4': PanScroll(); break; case '5': PowerSaving(); break; case ESC: exit(0); } } }
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 60
Epson Research and Development Vancouver Design Center
7.2 Initialization Code
//------------------------------------------------------------------------// // FUNCTION: Initialize() // // DESCRIPTION: Intialize S1D13503 registers. // // INPUTS: This function looks at the followingl global variables to // determine the appropriate register settings: // PanelX, PanelY, PanelType // // OUTPUTS: The following global variables are changed: // PanelGrayLevel, BytesPerScanLine // //------------------------------------------------------------------------void Initialize(void) { static unsigned int val, val2; static unsigned int x;
if (PanelD == PANEL_MONO) PanelGrayLevel = 16; else PanelGrayLevel = 256; //-------------------------------------// // Mode Register: // Display = OFF // Panel = SINGLE // Mask XSCL = NOT MASKED // LCDE = NOT ENABLED // Gray Shade/Color = 16 Gray Shades (bit is ignored for 256 colors) // LCD Data Width = 8 bit data transfer // Memory Interface = 16 bits // RAMS = Addressing for 8Kx8 SRAM // val = 0x0C; if (Interface == 4) val &= 0xfb; // Clear AUX[01] bit 2 so that Memory Interface = 4 bits if (PanelType == TYPE_DUAL) val |= 0x40; // Set panel type to DUAL WriteRegister(1, val); // Write to Mode Register
//--------------------------------------
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 61
// // Line Byte/Word Count Register // // Bits 0-7 are in AUX[2], Bit 8 is in AUX[3]. // // Because the Memory Interface is set to 16 bits, the // Line Byte/Word Count Register counts in words. // To calculate the Line Byte Count for different numbers of // gray shades/colors, use the following formula: // // BitsPerPixel // ---------------------- x Horizontal Resolution - 1 // Memory Interface Width // switch (PanelGrayLevel) { case 2: val = (PanelX / 16) - 1; // For black and white mode break; case 4: val = (PanelX / 8) - 1; break; case 16: val = (PanelX / 4) - 1; break; case 256: val = (PanelX / 2) - 1; break; } WriteRegister(2, val & 0xff); val2 = (val >> 8) & 0x01; if (PanelD == PANEL_COLOR) { val2 |= 0x06; // Select color mode and 256 colors if ((Interface == 8) && (PanelF == 2)) val2 |= 0x08; // Select format 2 } WriteRegister(3, val2); // Mode Register 1
// For 4 gray shades/colors
// For 16 gray shades/colors
// For 256 colors
// Line Byte/Word Count Register
// // BytesPerScanLine is a global variable // switch (PanelGrayLevel) {
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 62
Epson Research and Development Vancouver Design Center
case 2: BytesPerScanLine = (PanelX / 8); break; case 4: BytesPerScanLine = (PanelX / 4); break; case 16: BytesPerScanLine = (PanelX / 2); break; case 256: BytesPerScanLine = PanelX; break; } //-------------------------------------// // // // // // // // // // // // // // // if
Total Display Line Count Register Screen 1 Display Line Count Register To show a full image on Screen 1, copy the Total Display Line Count into the Screen 1 Display Line Count.
Old programs had previously assumed that all panels smaller than 400 lines use a 4 bit interface. However, newer panels which are less than 400 lines may use an 8 bit interface. Consequently this program must be told which interface to use. Set the Mask XSCL bit to MASKED (1) when using a 4 bit interface. (Interface == 4) { val = ReadRegister(1); val &= 0xfb; // Set LCD Data Width to 4 bit data transfer val |= 0x20; // Set Mask XSCL to MASKED WriteRegister(1, val); // Write to Mode Register; LCD Data Width = 4 bits }
val = PanelY; // // // // // if
A dual panel LCD will, of course, have two panels. Each panel will show either the top or bottom half of the image, which is half of the vertical resolution. (PanelType == TYPE_DUAL) val /= 2;
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 63
--val; WriteRegister(4, val & 0xff); // Write to Total Display Line Count Reg WriteRegister(0x0a, val & 0xff); // Write to Screen 1 Display Line Count Reg WriteRegister(5, (val >> 8) & 0x03); // Total Disp Line Cnt (MSB)/WF Count Reg WriteRegister(0x0b, (val >> 8) & 0x03); // Scrn 1 Disp Line Count Reg (MSB) //-------------------------------------// // Set Screen 1 Display Start Address to beginning of video memory // WriteRegister(6, 0); // Write to Screen 1 Display Start Address Register WriteRegister(7, 0); //-------------------------------------// // // // // // if
Screen 2 Display Start Address Register If using a dual panel, the Screen 2 Display Start Address must point to the second half of the image in video memory. (PanelType == TYPE_DUAL) { val = (unsigned int) ((ReadRegister(3) & 0x01) << 8) | ReadRegister(2); ++val;
val *= (PanelY / 2); WriteRegister(8, val & 0xff); WriteRegister(9, val >> 8); } else { // // On a single panel, Screen 1 was programmed to show all of its // lines. Consequently Screen 2 will not be seen, and so the // Screen 2 Display Start Address will have no observable effect. // For convenience, set the screen 2 address to 0. // WriteRegister(8, 0); WriteRegister(9, 0); } //-------------------------------------// // Set Horizontal Non-Display Period to 0 to use fixed default non-display period // WriteRegister(0x0c, 0); //--------------------------------------
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 64
Epson Research and Development Vancouver Design Center
// // Set Address Pitch Adjustment to 0 // WriteRegister(0x0d, 0); // Write to Address Pitch Adjustment Register //-------------------------------------// // Update Lookup Table for 16 gray shades/ 256 colors // if (PanelD == PANEL_MONO) { for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, MonoLUT16[x]); } } else { for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); // Auto-increment mode selected WriteRegister(0x0f, ColorLUT256Red[x]); WriteRegister(0x0f, ColorLUT256Green[x]); WriteRegister(0x0f, ColorLUT256Blue[x]); } } //-------------------------------------// // Now that system is initialized, set DISPLAY ON and enable LCDE // val = ReadRegister(1); val |= 0x90; // DISPLAY ON, LCDE enabled WriteRegister(1, val); }
//------------------------------------------------------------------------// // GetID() // // This function returns the Chip ID. // //------------------------------------------------------------------------static unsigned char GetID(int PortAddr) { static unsigned char ChipID;
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 65
ChipID = ID_NOT_DETECTED;
// // If the chip was just powered up, and no registers have been initialized, // then use the following code: // outp(PortAddr, 0x0e); switch (inp(PortAddr+1) & 0x30) { case 0x00: ChipID = ID_13503; break; case 0x20: ChipID = ID_13502; break; case 0x30: ChipID = ID_13502; break; default: ChipID = ID_NOT_DETECTED; break; } return(ChipID); }
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 66
Epson Research and Development Vancouver Design Center
7.3 Advanced Functions
#define VIRTUAL_X #define VIRTUAL_Y (360L) (360L)
//------------------------------------------------------------------------// // FUNCTION: ShowRegisters() // // DESCRIPTION: Shows the contents of the S1D13503 registers. // // INPUTS: None. // RETURN VALUE: None. // //------------------------------------------------------------------------void ShowRegisters(void) { static unsigned char x; static unsigned char red, green, blue; printf("S1D13503 Registers: "); for (x = 0; x < 16; ++x) printf("%02X ", ReadRegister(x)); printf("\nS1D13503 Lookup Table: "); for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); red = ReadRegister(0x0f); green = ReadRegister(0x0f); blue = ReadRegister(0x0f); if (x % 7 == 0) printf("\n"); printf("(%02X,%02X,%02X) ", red, green, blue); } ShowMenu(); }
//------------------------------------------------------------------------// // FUNCTION: GrayShadeBars() // // DESCRIPTION: Displays a series of vertical bars, each with a // different color/gray shade. // For color displays, bars are shown for 4, 16, and 256 colors.
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 67
// For monochrome displays, bars are shown for black and white, // 4, and 16 gray shades. // // INPUTS: None. // // RETURN VALUE: None. // //------------------------------------------------------------------------void GrayShadeBars(void) { static unsigned int val, val2, x; static unsigned char _far *pVideo; static char Gray4[] = "Vertical Bars at 4 Gray Shades"; static char Color4[] = "Vertical Bars at 4 Colors"; static char Gray16[] = "Vertical Bars at 16 Gray Shades"; static char Color16[] = "Vertical Bars at 16 Colors"; static char *str;
printf("Displaying Vertical Bars\n"); Initialize(); SetDisplay(OFF); ClearLCDScreen();
// // Access memory banks // FP_SEG(pVideo) = 0xd000; FP_OFF(pVideo) = 0x0000; //-------------------------------------if (PanelD == PANEL_MONO) { // // Select black and white mode // val = ReadRegister(3); val |= 0x04; // Set AUX[03] bit 2 val &= 0xfd; // Clear AUX[03] bit 1 WriteRegister(3, val);
// // Update Line Byte/Word Count register for black and white. // // Since black and white has 8 pixels per byte, there
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 68
Epson Research and Development Vancouver Design Center
// are ((x horizontal pixels)/8) bytes per scan line. This means that // there are ((x horizontal pixels)/16) words per scan line. // // Since the Memory Interface is set to 16 bits, the Line Byte/Word Count // refers to words. // val = (PanelX / 16) - 1; BytesPerScanLine = (PanelX / 8); WriteRegister(2, val & 0xff); val2 = ReadRegister(3); val2 &= 0xfe; val2 |= (val >> 8) & 0x01; WriteRegister(3, val2); PanelGrayLevel = 2; ShowVerticalBars(pVideo, 0); // // Show text. The lightest gray shade is set to PanelGrayLevel-1. // ShowText(pVideo, BANK0, "Vertical Bars for Black and White", PanelGrayLevel-1); SetDisplay(ON); Delay(2000); } //-------------------------------------SetDisplay(OFF); ClearLCDScreen(); // // Select 4 gray shades/colors // if (PanelD == PANEL_MONO) { val = ReadRegister(1); val &= 0xf7; // Clear AUX[01] bit 3 WriteRegister(1, val); val = ReadRegister(3); val &= 0xf9; WriteRegister(3, val); // Line Byte Count Register
// Clear bit 0 // Mode Register 1
// Clear AUX[03] bits 1 and 2
// // Update Lookup Table for 4 gray shades // for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, MonoLUT4[x]); }
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 69
str = Gray4; } else // 4 colors { val = ReadRegister(1); val &= 0xf7; WriteRegister(1, val); val = ReadRegister(3); val &= 0xfb; val |= 0x02; WriteRegister(3, val);
// Clear AUX[01] bit 3
// Clear AUX[03] bit 2 // Set AUX[03] bit 1
// // Update Lookup Table for 4 colors // for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, ColorLUT4Red[x]); WriteRegister(0x0f, ColorLUT4Green[x]); WriteRegister(0x0f, ColorLUT4Blue[x]); } str = Color4; } // // Update Line Byte/Word Count register for 4 colors/gray shades // // Since 4 colors/gray shades corresponds to 4 pixels per byte, there // are ((x horizontal pixels)/4) bytes per scan line. This means that // there are ((x horizontal pixels)/8) words per scan line. // // Since the Memory Interface is set to 16 bits, the Line Byte/Word Count // refers to words. // val = (PanelX / 8) - 1; BytesPerScanLine = (PanelX / 4); WriteRegister(2, val & 0xff); val2 = ReadRegister(3); val2 &= 0xfe; val2 |= (val >> 8) & 0x01; WriteRegister(3, val2); PanelGrayLevel = 4; ShowVerticalBars(pVideo, 0); // // Line Byte Count Register
// Clear bit 0 // Mode Register 1
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 70
Epson Research and Development Vancouver Design Center
// Show text. The lightest color/gray shade is set to PanelGrayLevel-1. // ShowText(pVideo, BANK0, str, PanelGrayLevel-1); ShowText(pVideo + BytesPerScanLine*8, BANK0, "BANK: 0", PanelGrayLevel-1); SetDisplay(ON); Delay(2000); val = ReadRegister(0x0e); val &= 0x3f; val |= 0x40; WriteRegister(0x0e, val); ShowVerticalBars(pVideo, 0); ShowText(pVideo, BANK0, str, PanelGrayLevel-1); ShowText(pVideo + BytesPerScanLine*8, BANK0, "BANK: 1", PanelGrayLevel-1); Delay(2000); val &= 0x3f; val |= 0x80; WriteRegister(0x0e, val); ShowVerticalBars(pVideo, 0); ShowText(pVideo, BANK0, str, PanelGrayLevel-1); ShowText(pVideo + BytesPerScanLine*8, BANK0, "BANK: 2", PanelGrayLevel-1); Delay(2000); val |= 0xc0; WriteRegister(0x0e, val); ShowVerticalBars(pVideo, 0); ShowText(pVideo, BANK0, str, PanelGrayLevel-1); ShowText(pVideo + BytesPerScanLine*8, BANK0, "BANK: 3", PanelGrayLevel-1); Delay(2000); //-------------------------------------SetDisplay(OFF); ClearLCDScreen(); // // Select 16 colors/gray shades // if (PanelD == PANEL_MONO) { val = ReadRegister(1); val |= 0x08; // Set AUX[01] bit 3 WriteRegister(1, val); val = ReadRegister(3); val &= 0xf9; WriteRegister(3, val);
// Clear AUX[03] bits 1 and 2
// // Update Lookup Table for 16 gray shades //
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 71
for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, MonoLUT16[x]); } str = Gray16; } else // 16 colors { val = ReadRegister(1); val |= 0x08; WriteRegister(1, val); val = ReadRegister(3); val &= 0xfb; val |= 0x02; WriteRegister(3, val);
// Set AUX[01] bit 3
// Clear AUX[03] bit 2 // Set AUX[03] bit 1
// // Update Lookup Table for 16 colors // for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, ColorLUT16Red[x]); WriteRegister(0x0f, ColorLUT16Green[x]); WriteRegister(0x0f, ColorLUT16Blue[x]); } str = Color16; } // // Update Line Byte Count register for 16 colors/gray shades // // Since 16 colors/gray shades corresponds to 2 pixels per byte, there // are ((x horizontal pixels)/2) bytes per scan line. This means that // there are ((x horizontal pixels)/4) words per scan line. // // Since the Memory Interface is set to 16 bits, the Line Byte/Word Count // refers to words. // val = (PanelX / 4) - 1; BytesPerScanLine = (PanelX / 2); WriteRegister(2, val & 0xff); val2 = ReadRegister(3); val2 &= 0xfe; val2 |= (val >> 8) & 0x01; WriteRegister(3, val2); // Line Byte Count Register
// Clear bit 0 // Mode Register 1
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 72
Epson Research and Development Vancouver Design Center
PanelGrayLevel = 16; ShowVerticalBars(pVideo, 0);
// // Show text. The lightest color/gray shade is set to PanelGrayLevel-1. // ShowText(pVideo, BANK0, str, PanelGrayLevel-1); SetDisplay(ON); Delay(2000); //-------------------------------------if (PanelD == PANEL_COLOR) { SetDisplay(OFF); ClearLCDScreen(); // // Select 256 colors // val = ReadRegister(3); val |= 0x06; WriteRegister(3, val);
// Set AUX[03] bits 1 and 2
// // Update Lookup Table for 256 colors // for (x = 0; x < 16; ++x) { WriteRegister(0x0e, x); WriteRegister(0x0f, ColorLUT256Red[x]); WriteRegister(0x0f, ColorLUT256Green[x]); WriteRegister(0x0f, ColorLUT256Blue[x]); } // // Update Line Byte/Word Count register for 256 colors // // Since 256 colors have one pixel per byte, there // are (x horizontal pixels) bytes per scan line. This means that // there are ((x horizontal pixels)/2) words per scan line. // // Since the Memory Interface is set to 16 bits, the Line Byte/Word Count // refers to words. // val = (PanelX / 2) - 1; BytesPerScanLine = PanelX; WriteRegister(2, val & 0xff); // Line Byte Count Register
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 73
val2 = ReadRegister(3); val2 &= 0xfe; val2 |= (val >> 8) & 0x01; WriteRegister(3, val2); PanelGrayLevel = 256; ShowVerticalBars(pVideo, 0);
// Clear bit 0 // Mode Register 1
// // Show text. The lightest color is set to PanelGrayLevel-1. // ShowText(pVideo, BANK0, "Horizontal/Vertical Bars at 256 Colors", PanelGrayLevel1); SetDisplay(ON); Delay(2000); } else SetDisplay(ON); ShowMenu(); } //------------------------------------------------------------------------// // ShowText() // // DESCRIPTION: Writes text to the LCD panel. Text must only contain // the letters A-Z, and the space character. All other // characters are replaced by spaces. // // NOTES: It is assumed that a pixel set to a value of 0 represents the // background color (black). // //------------------------------------------------------------------------void ShowText(unsigned char _far *pVideoStart, unsigned char bank, char *str, int color) { static const unsigned char *pFont; static unsigned char _far *pVideoFirstColumn; static unsigned char _far *pVideo; static unsigned char ch; static unsigned int y, val, Video; static unsigned int count; // // Each letter in the font is 8 x 8 bits // #define MAX_FONT 97 static const unsigned char font[MAX_FONT][8] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
// (blank)
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 74
Epson Research and Development Vancouver Design Center
{ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { {
0x30, 0x6C, 0x6C, 0x30, 0x00, 0x38, 0x60, 0x18, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x7C, 0x30, 0x78, 0x78, 0x1C, 0xFC, 0x38, 0xFC, 0x78, 0x78, 0x00, 0x00, 0x18, 0x00, 0x60, 0x78, 0x7C, 0x30, 0xFC, 0x3C, 0xF8, 0xFE, 0xFE, 0x3C, 0xCC, 0x78, 0x1E, 0xE6, 0xF0, 0xC6, 0xC6, 0x38, 0xFC, 0x78, 0xFC, 0x78, 0xFC, 0xCC,
0x78, 0x6C, 0x6C, 0x7C, 0xC6, 0x6C, 0x60, 0x30, 0x30, 0x66, 0x30, 0x00, 0x00, 0x00, 0x0C, 0xC6, 0x70, 0xCC, 0xCC, 0x3C, 0xC0, 0x60, 0xCC, 0xCC, 0xCC, 0x30, 0x30, 0x30, 0x00, 0x30, 0xCC, 0xC6, 0x78, 0x66, 0x66, 0x6C, 0x62, 0x62, 0x66, 0xCC, 0x30, 0x0C, 0x66, 0x60, 0xEE, 0xE6, 0x6C, 0x66, 0xCC, 0x66, 0xCC, 0xB4, 0xCC,
0x78, 0x6C, 0xFE, 0xC0, 0xCC, 0x38, 0xC0, 0x60, 0x18, 0x3C, 0x30, 0x00, 0x00, 0x00, 0x18, 0xCE, 0x30, 0x0C, 0x0C, 0x6C, 0xF8, 0xC0, 0x0C, 0xCC, 0xCC, 0x30, 0x30, 0x60, 0xFC, 0x18, 0x0C, 0xDE, 0xCC, 0x66, 0xC0, 0x66, 0x68, 0x68, 0xC0, 0xCC, 0x30, 0x0C, 0x6C, 0x60, 0xFE, 0xF6, 0xC6, 0x66, 0xCC, 0x66, 0xE0, 0x30, 0xCC,
0x30, 0x00, 0x6C, 0x78, 0x18, 0x76, 0x00, 0x60, 0x18, 0xFF, 0xFC, 0x00, 0xFC, 0x00, 0x30, 0xDE, 0x30, 0x38, 0x38, 0xCC, 0x0C, 0xF8, 0x18, 0x78, 0x7C, 0x00, 0x00, 0xC0, 0x00, 0x0C, 0x18, 0xDE, 0xCC, 0x7C, 0xC0, 0x66, 0x78, 0x78, 0xC0, 0xFC, 0x30, 0x0C, 0x78, 0x60, 0xFE, 0xDE, 0xC6, 0x7C, 0xCC, 0x7C, 0x70, 0x30, 0xCC,
0x30, 0x00, 0xFE, 0x0C, 0x30, 0xDC, 0x00, 0x60, 0x18, 0x3C, 0x30, 0x00, 0x00, 0x00, 0x60, 0xF6, 0x30, 0x60, 0x0C, 0xFE, 0x0C, 0xCC, 0x30, 0xCC, 0x0C, 0x00, 0x00, 0x60, 0x00, 0x18, 0x30, 0xDE, 0xFC, 0x66, 0xC0, 0x66, 0x68, 0x68, 0xCE, 0xCC, 0x30, 0xCC, 0x6C, 0x62, 0xD6, 0xCE, 0xC6, 0x60, 0xDC, 0x6C, 0x1C, 0x30, 0xCC,
0x00, 0x00, 0x6C, 0xF8, 0x66, 0xCC, 0x00, 0x30, 0x30, 0x66, 0x30, 0x30, 0x00, 0x30, 0xC0, 0xE6, 0x30, 0xCC, 0xCC, 0x0C, 0xCC, 0xCC, 0x30, 0xCC, 0x18, 0x30, 0x30, 0x30, 0xFC, 0x30, 0x00, 0xC0, 0xCC, 0x66, 0x66, 0x6C, 0x62, 0x60, 0x66, 0xCC, 0x30, 0xCC, 0x66, 0x66, 0xC6, 0xC6, 0x6C, 0x60, 0x78, 0x66, 0xCC, 0x30, 0xCC,
0x30, 0x00, 0x6C, 0x30, 0xC6, 0x76, 0x00, 0x18, 0x60, 0x00, 0x00, 0x30, 0x00, 0x30, 0x80, 0x7C, 0xFC, 0xFC, 0x78, 0x1E, 0x78, 0x78, 0x30, 0x78, 0x70, 0x30, 0x30, 0x18, 0x00, 0x60, 0x30, 0x78, 0xCC, 0xFC, 0x3C, 0xF8, 0xFE, 0xF0, 0x3E, 0xCC, 0x78, 0x78, 0xE6, 0xFE, 0xC6, 0xC6, 0x38, 0xF0, 0x1C, 0xE6, 0x78, 0x78, 0xFC,
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
}, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, },
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
! " # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 75
{ { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { { {
0xCC, 0xC6, 0xC6, 0xCC, 0xFE, 0x78, 0xC0, 0x78, 0x10, 0x00, 0x30, 0x00, 0xE0, 0x00, 0x1C, 0x00, 0x38, 0x00, 0xE0, 0x30, 0x0C, 0xE0, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x18, 0xE0, 0x76, 0x00, 0xFF,
0xCC, 0xC6, 0xC6, 0xCC, 0xC6, 0x60, 0x60, 0x18, 0x38, 0x00, 0x30, 0x00, 0x60, 0x00, 0x0C, 0x00, 0x6C, 0x00, 0x60, 0x00, 0x00, 0x60, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x18, 0x30, 0xDC, 0x10, 0xFF,
0xCC, 0xC6, 0x6C, 0xCC, 0x8C, 0x60, 0x30, 0x18, 0x6C, 0x00, 0x18, 0x78, 0x60, 0x78, 0x0C, 0x78, 0x60, 0x76, 0x6C, 0x70, 0x0C, 0x66, 0x30, 0xCC, 0xF8, 0x78, 0xDC, 0x76, 0xDC, 0x7C, 0x7C, 0xCC, 0xCC, 0xC6, 0xC6, 0xCC, 0xFC, 0x30, 0x18, 0x30, 0x00, 0x38, 0xFF,
0xCC, 0xD6, 0x38, 0x78, 0x18, 0x60, 0x18, 0x18, 0xC6, 0x00, 0x00, 0x0C, 0x7C, 0xCC, 0x7C, 0xCC, 0xF0, 0xCC, 0x76, 0x30, 0x0C, 0x6C, 0x30, 0xFE, 0xCC, 0xCC, 0x66, 0xCC, 0x76, 0xC0, 0x30, 0xCC, 0xCC, 0xD6, 0x6C, 0xCC, 0x98, 0xE0, 0x00, 0x1C, 0x00, 0x6C, 0xFF,
0xCC, 0xFE, 0x38, 0x30, 0x32, 0x60, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x7C, 0x66, 0xC0, 0xCC, 0xFC, 0x60, 0xCC, 0x66, 0x30, 0x0C, 0x78, 0x30, 0xFE, 0xCC, 0xCC, 0x66, 0xCC, 0x66, 0x78, 0x30, 0xCC, 0xCC, 0xFE, 0x38, 0xCC, 0x30, 0x30, 0x18, 0x30, 0x00, 0xC6, 0xFF,
0x78, 0xEE, 0x6C, 0x30, 0x66, 0x60, 0x06, 0x18, 0x00, 0x00, 0x00, 0xCC, 0x66, 0xCC, 0xCC, 0xC0, 0x60, 0x7C, 0x66, 0x30, 0xCC, 0x6C, 0x30, 0xD6, 0xCC, 0xCC, 0x7C, 0x7C, 0x60, 0x0C, 0x34, 0xCC, 0x78, 0xFE, 0x6C, 0x7C, 0x64, 0x30, 0x18, 0x30, 0x00, 0xC6, 0xFF,
0x30, 0xC6, 0xC6, 0x78, 0xFE, 0x78, 0x02, 0x78, 0x00, 0x00, 0x00, 0x76, 0xDC, 0x78, 0x76, 0x78, 0xF0, 0x0C, 0xE6, 0x78, 0xCC, 0xE6, 0x78, 0xC6, 0xCC, 0x78, 0x60, 0x0C, 0xF0, 0xF8, 0x18, 0x76, 0x30, 0x6C, 0xC6, 0x0C, 0xFC, 0x1C, 0x18, 0xE0, 0x00, 0xFE, 0xFF,
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xF8 0x00 0x00 0x78 0x00 0x00 0x00 0x00 0x00 0xF0 0x1E 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xF8 0x00 0x00 0x00 0x00 0x00 0x00 0xFF
}, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, }, } };
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
V W X Y Z [ (backslash) ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ 127 // block char
pVideoFirstColumn = pVideoStart; pVideo = pVideoFirstColumn; // // Select Memory Bank by reading or writing to port. // if (bank == 1) outp(PanelPortAddr+2, 0);
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 76
Epson Research and Development Vancouver Design Center
else inp(PanelPortAddr+2); switch (PanelGrayLevel) { case 2: // // If there are 2 gray levels, there are 8 pixels/byte // color &= 0x01; while (*str != 0) { ch = *str++; if ((ch < ' ') || (ch - ' ' > MAX_FONT-1)) ch = '.'; pFont = &font[ch - ' '][0]; for (y = 0; y < 8; ++y) { pVideo = pVideoFirstColumn; Video = 0; val = *pFont++; // // Since there are 2 gray shades, each bit in the font will be // represented in video memory as a one bit pixel. // if (val & 0x80) Video |= (color << 7); if (val & 0x40) Video |= (color << 6); if (val & 0x20) Video |= (color << 5); if (val & 0x10) Video |= (color << 4); if (val & 0x08) Video |= (color << 3); if (val & 0x04) Video |= (color << 2); if (val & 0x02) Video |= (color << 1); if (val & 0x01)
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 77
Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); pVideoFirstColumn += BytesPerScanLine; } ++pVideoStart; // Point to next character pVideoFirstColumn = pVideoStart; } break; case 4: // // If there are 4 colors/gray levels, there are 4 pixels/byte // color &= 0x03; while (*str != 0) { ch = *str++; if ((ch < ' ') || (ch - ' ' > MAX_FONT-1)) ch = '.'; pFont = &font[ch - ' '][0]; for (y = 0; y < 8; ++y) { pVideo = pVideoFirstColumn; Video = 0; val = *pFont++; // // Since there are 4 colors/gray shades, each bit in the font will be // represented in video memory as a two bit pixel. // if (val & 0x80) Video |= (color << 6); if (val & 0x40) Video |= (color << 4); if (val & 0x20) Video |= (color << 2); if (val & 0x10) Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank);
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 78
Epson Research and Development Vancouver Design Center
Video = 0; if (val & 0x08) Video |= (color << 6); if (val & 0x04) Video |= (color << 4); if (val & 0x02) Video |= (color << 2); if (val & 0x01) Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); pVideoFirstColumn += BytesPerScanLine; } pVideoStart += 2; // Point to next character pVideoFirstColumn = pVideoStart; } break; case 16: color &= 0x0f; while (*str != 0) { ch = *str++; if ((ch < ' ') || (ch - ' ' > MAX_FONT-1)) ch = '.'; pFont = &font[ch - ' '][0]; for (y = 0; y < 8; ++y) { pVideo = pVideoFirstColumn; Video = 0; val = *pFont++; // // Since there are 16 colors/gray shades, each bit in the font will be // represented in video memory as a four bit pixel. // if (val & 0x80) Video |= (color << 4); if (val & 0x40) Video |= color;
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 79
*pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); Video = 0; if (val & 0x20) Video |= (color << 4); if (val & 0x10) Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); Video = 0; if (val & 0x08) Video |= (color << 4); if (val & 0x04) Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); Video = 0; if (val & 0x02) Video |= (color << 4); if (val & 0x01) Video |= color; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); pVideoFirstColumn += BytesPerScanLine; } pVideoStart += 4; // Point to next character pVideoFirstColumn = pVideoStart; } break; case 256: while (*str != 0) { ch = *str++; if ((ch < ' ') || (ch - ' ' > MAX_FONT-1)) ch = '.'; pFont = &font[ch - ' '][0]; for (y = 0; y < 8; ++y)
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 80
Epson Research and Development Vancouver Design Center
{ pVideo = pVideoFirstColumn; Video = 0; val = *pFont++; // // Since there are 256 colors, each bit in the font will be // represented in video memory as an 8 bit pixel. // for (count = 0; count < 8; ++count) { if (val & 0x80) Video = color; else Video = 0; *pVideo++ = (unsigned char) Video; CheckBank(pVideo, &bank); val <<= 1; } pVideoFirstColumn += BytesPerScanLine; } pVideoStart += 8; // Point to next character pVideoFirstColumn = pVideoStart; } break; } } //------------------------------------------------------------------------// // FUNCTION: SplitScreen() // // DESCRIPTION: Show split screen. // // INPUTS: None. // RETURN VALUE: None. // //------------------------------------------------------------------------void SplitScreen(void) { static unsigned char _far *pVideoImage1; static unsigned char _far *pVideoImage2; static unsigned long ImageSize; static unsigned int OriginalLineCount; static unsigned int val; static int MinLineCount; static unsigned int MaxVirtualScanLines; static unsigned char Image2Bank;
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 81
printf("Showing Split Screen\n"); Initialize(); SetDisplay(OFF); ClearLCDScreen();
// // Access memory banks // FP_SEG(pVideoImage1) = 0xd000; FP_OFF(pVideoImage1) = 0x0000;
switch (PanelGrayLevel) { case 2: BytesPerScanLine = (PanelX / 8); break; case 4: BytesPerScanLine = (PanelX / 4); break; case 16: BytesPerScanLine = (PanelX / 2); break; case 256: BytesPerScanLine = PanelX; break; } ShowVerticalBars(pVideoImage1, 0);
// // Calculate starting video memory location for image 2 by finding the // last location of image 1 // ImageSize = (unsigned long) BytesPerScanLine * PanelY; // // Because the image size is limited to a maximum of 320 x 240, and there // is 128k of video memory, there is enough memory available. // FP_SEG(pVideoImage2) = 0xd000; FP_OFF(pVideoImage2) = (unsigned int) (ImageSize & 0xffff); if (ImageSize & 0xffff0000) Image2Bank = BANK1;
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 82
Epson Research and Development Vancouver Design Center
else Image2Bank = BANK0; ShowHorizontalBars(pVideoImage2, Image2Bank); // // Show text. The lightest color/gray shade is set to PanelGrayLevel-1. // ShowText(pVideoImage1, BANK0, "SPLIT SCREEN IMAGE ONE", PanelGrayLevel-1); ShowText(pVideoImage2, Image2Bank, "SPLIT SCREEN IMAGE TWO", PanelGrayLevel-1);
// // Set Screen 2 Display Start Address register to point to Image 2 // // Adjust ImageSize to represent the size in words, not bytes. // This is because the Memory Interface is set to 16 bits. // val = (unsigned int) (ImageSize / 2); WriteRegister(8, (unsigned int) val & 0xff); WriteRegister(9, (unsigned int) val >> 8);
SetDisplay(ON);
// // // // // if
If this is a dual panel, then the split screen has just been shown. Otherwise, set up the Screen 1 Display Line Count register for single panels. (PanelType == TYPE_SINGLE) { OriginalLineCount = (unsigned int) ((ReadRegister(0x0b) & 0x03) << 8) | ReadRegister(0x0a);
// Only for 128k of memory MaxVirtualScanLines = (unsigned int) ((unsigned long) 0x20000 / BytesPerScanLine); MinLineCount = OriginalLineCount (MaxVirtualScanLines - OriginalLineCount) + 1; if (MinLineCount < 0) MinLineCount = 0;
// // Scroll image 2 down // for (val = MinLineCount; val < OriginalLineCount; val += 1)
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 83
{ WriteRegister(0x0a, val & 0xff); WriteRegister(0x0b, (val >> 8) & 0x03); Delay(DELAY_SHORT); }
// Total Display Line Count // Total Disp Line Cnt/WF Count
// // Scroll image 2 up // for (val = OriginalLineCount; val > (unsigned int) MinLineCount; val -= 1) { WriteRegister(0x0a, val & 0xff); // Total Display Line Count WriteRegister(0x0b, (val >> 8) & 0x03); // Total Disp Line Cnt/WF Count Delay(DELAY_SHORT); } val = MinLineCount; WriteRegister(0x0a, val & 0xff); WriteRegister(0x0b, (val >> 8) & 0x03); Delay(500); } ShowMenu(); }
// Total Display Line Count Reg // Total Disp Line Cnt/WF Count
void SetStartAddress(int x, int y) { int addr; switch (PanelGrayLevel) { case 16: addr = (unsigned int) ((x/2 + (VIRTUAL_X/2) * y)/2); break; case 256: addr = (unsigned int) ((x + VIRTUAL_X * y)/2); break; } WriteRegister(6, addr & 0xff); WriteRegister(7, addr >> 8); }
void PanScroll(void) { static unsigned int x, y;
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 84
Epson Research and Development Vancouver Design Center
static static static static
unsigned unsigned unsigned unsigned
int MaxX, MaxY; int val, pitch; char _far *pVideo; char bank, color;
printf("Showing Panning and Scrolling\n"); Initialize(); SetDisplay(OFF); ClearLCDScreen();
switch (PanelGrayLevel) { case 16: pitch = (unsigned int) (((VIRTUAL_X / 2) - BytesPerScanLine) / 2); BytesPerScanLine = (VIRTUAL_X / 2); break; case 256: pitch = (unsigned int) ((VIRTUAL_X - BytesPerScanLine) / 2); BytesPerScanLine = VIRTUAL_X; break; } WriteRegister(0x0d, pitch);
// // Access memory banks // FP_SEG(pVideo) = 0xd000; FP_OFF(pVideo) = 0x0000;
// // Display random blocks of data. To do so, a text character will be used. // This character sets all pixels in a character region, so a block is // shown at the specified gray shade. // // Seed the random number generator with current time srand((unsigned) time(NULL)); for (x = 0; x < 300; ++x) { if (((rand() * 2L) / RAND_MAX) == 1) bank = BANK0; else bank = BANK1;
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 85
FP_OFF(pVideo) = (unsigned int) ((rand() * 0xffffL) / RAND_MAX); val = rand() % 50; switch (PanelGrayLevel) { case 16: color = (unsigned char) (rand() % 16); break; case 256: color = (unsigned char) (rand() % 256); break; } // The last character in the font table is a solid block character. ShowText(pVideo, bank, "\x80", color); } ShowBorders(); // // Move virtual display from (0, 0) to (MaxX, 0) // MaxX = (unsigned int) (VIRTUAL_X - PanelX); MaxY = (unsigned int) (VIRTUAL_Y - PanelY); SetDisplay(ON); for (x = 0; x <= MaxX; ++x) { SetStartAddress(x, 0); Delay(DELAY_SHORT); } for (y = 0; y <= MaxY; ++y) { SetStartAddress(MaxX, y); Delay(DELAY_SHORT); } for (x = MaxX; x > 0; --x) { SetStartAddress(x, MaxY); Delay(DELAY_SHORT); } for (y = MaxY; y > 0; --y) { SetStartAddress(0, y); Delay(DELAY_SHORT); } SetStartAddress(0, 0);
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 86
Epson Research and Development Vancouver Design Center
ShowMenu(); } //------------------------------------------------------------------------// // FUNCTION: PowerSaving() // // DESCRIPTION: Starts power saving mode 2. // // INPUTS: None. // RETURN VALUE: None. // //------------------------------------------------------------------------void PowerSaving(void) { static unsigned int val; printf("Starting Power Saving\n"); // // The following are the steps to enter a power save mode. // // // Step 1: Turn off display // val = ReadRegister(1); val &= 0x7f; WriteRegister(1, val); // // Step 2: Disable LCDE (turn off LCD power supply). // For the S5U13503B00C, set LCDE bit to 0. // val = ReadRegister(1); val &= 0xef; WriteRegister(1, val); // // Step 2: Wait for LCD power supply to drop to zero volts // For the S5U13503B00C, wait about a half second. // Delay(500); // // Step 3: Enter Power Save Mode // val = ReadRegister(3); val &= 0x3f; val |= 0x80; WriteRegister(3, val); // Set power saving mode 2
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 87
printf("Press any key to cancel power saving\n"); getch();
// // The following are the steps to exit a power save mode. // // // Step 1: Exit Power Save Mode // val = ReadRegister(3); val &= 0x3f; WriteRegister(3, val); // Cancel power saving mode 2 // // Step 2: Enable LCDE (turn on LCD power supply). // For the S5U13503B00C, set LCDE bit to 1. // val = ReadRegister(1); val |= 0x10; WriteRegister(1, val); // // Step 3: Turn on display. // val = ReadRegister(1); val |= 0x80; WriteRegister(1, val);
ShowMenu(); }
Programming Notes and Examples Issue Date: 01/01/30
S1D13503 X18A-G-002-06
Page 88
Epson Research and Development Vancouver Design Center
8 GLOSSARY
13503 bank The S1D13503 LCD controller chip. In reference to display memory banking, a bank is a 64k byte block of display memory. Bank 0 represents the first 64k bytes of display memory, and bank 1 represents the second 64k bytes. A specific combination of red, green, and blue intensities. Memory in which an image is stored for display by the S1D13503. A specific combination of white and black colors. For example, a lighter gray shade has more white than black. Liquid Crystal Display. The display device used by the S1D13503. The device used to control the LCD display. The S1D13503 is an LCD controller. Look-Up Table, or palette. The LUT treats the value of a pixel as an index into an array of colors or gray shades. The circuitry and viewable area of an LCD display which supports a single image. LCD displays may have one or two panels. The right or left movement of the viewport in a virtual display. Picture Element. A pixel is seen as a dot on the display, and can be shown using one of several different colors or gray shades. Combining pixels in a group creates an image. A means of reducing the power consumption of the S1D13503. A memory storage location to control a peripheral, such as the S1D13503. The up and down movement of the viewport in a virtual display. The 13503 chip. The evaluation board for the S1D13503. The S5U13503B00C is an ISA board for a PCcompatible computer. The visible portion of a virtual display. An image, which is stored in display memory, that is larger than what the LCD display can show. A virtual display supports panning and scrolling.
color display memory gray shade LCD LCD controller LUT panel panning pixel power saving register scrolling S1D13503 S5U13503B00C viewport virtual display
S1D13503 X18A-G-002-06
Programming Notes and Examples Issue Date: 01/01/30
S1D13503F00A Register Summary
AUX[00] TEST REGISTER: I/O address = 0000b, RW Test Mode Enable reserved must = 0 Test Input Select / Scratch Bit 2 Bit 1 Bit 0 Test Output Select / Scratch Bit 2 Bit 1 Bit 0 AUX[0B] SCREEN 1 DISPLAY LINE COUNT REGISTER (MSB): I/O address = 1011b, RW n/a1 n/a n/a n/a n/a n/a Screen 1 Disp Line Count Bit 9 Bit 8
X18A-Q-002-05
AUX[01] MODE REGISTER 0: I/O address = 0001b, RW DISP Panel Mask XSCL LCDE Gray Shade / Color LCD Data Width Bit 0 Memory Interface RAMS
AUX[0C] HORIZONTAL NON-DISPLAY PERIOD REGISTER: I/O address = 1100b, RW Horizontal Non-Display period Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
AUX[02] LINE BYTE COUNT REGISTER (LSB): I/O address = 0010b, RW Line Byte Count (low byte) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
AUX[0D] ADDRESS PITCH ADJUSTMENT REGISTER: I/O address = 1101b, RW Address Pitch Adjustment Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
AUX[03] MODE REGISTER 1: I/O address = 0011b, RW Power Save Mode Bit 1 Bit 0 LCD Signal LCD Data LUT Bypass State Width Bit 1 BW / 256 Colors Color Mode Line Byte Count Bit 8
AUX[0E] LOOK-UP TABLE ADDRESS REGISTER: I/O address = 1110b, RW Green Bank Select Bit 1 Bit 0 ID2 / RGB Index Bit 1 Bit 0 Bit 3 Palette Address Bit 2 Bit 1 Bit 0
AUX[04] TOTAL DISPLAY LINE COUNT REGISTER (LSB): I/O address = 0100b, RW Total Display Line Count (low byte) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
AUX[0F] LOOKUP TABLE DATA REGISTER: I/O address = 1111b, RW Red Bank Select Bit 1 Bit 0 Blue Bank Select Bit 1 Bit 0 Bit 3 Palette Data Bit 2 Bit 1 Bit 0
AUX[05] TOTAL DISPLAY LINE COUNT REGISTER (MSB) AND WF COUNT REGISTER: I/O address = 0101b, RW WF Count Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Total Display Line Count Bit 9 Bit 8 Notes 1 n/a bits should be written 0. 2 These bits are used to identify the S1D13503 at power on / RESET. If these bits read 00b at Power On / Reset the device is an S1D13503F00A. If this bit reads 10b at Power On / Reset the device is an S1D13502F00B. If this bit reads 11b at Power On / Reset the device is an S1D13502F00A. Bit 0
AUX[06] SCREEN 1 DISPLAY START ADDRESS REGISTER (LSB): I/O address = 0110b, RW Screen 1 Display Start Address (low byte) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1
AUX[07] SCREEN 1 DISPLAY START ADDRESS REGISTER (MSB): I/O address = 0111b, RW Screen 1 Display Start Address (high byte) Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8
AUX[08] SCREEN 2 DISPLAY START ADDRESS REGISTER (LSB): I/O address = 1000b, RW Screen 2 Display Start Address (low byte) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
AUX[09] SCREEN 2 DISPLAY START ADDRESS REGISTER (MSB): I/O address = 1001b, RW Screen 2 Display Start Address (high byte) Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8
AUX[0A] SCREEN 1 DISPLAY LINE COUNT REGISTER (LSB): I/O address = 1010b, RW Screen 1 Display Line Count (low byte) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Page 1
01/03/02
S1D13503F00A Register Summary
X18A-Q-002-05
Page 2
01/03/02
S1D13503 Dot Matrix Graphics LCD Controller
13503SHOW.EXE Display Utility
Document Number: X18A-B-001-05
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-001-05
13503SHOW.EXE Display Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503SHOW.EXE DISPLAY UTILITY
13503SHOW is a utility used to load and display GIF images. It can also be used to demonstrate the split screen capabilities of the S1D13503 by loading two images and vertically scrolling one image.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box Windows DOS Full Screen OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : Seiko Epson 13503BIOS version 1.xx or later : Yes : 3.0 or greater : No : Yes : Yes : Yes
Installation
Copy the file 13503show.exe to a directory that is in the DOS path on your hard drive.
Usage
13503SHOW is invoked from the DOS command line as follows: 13503show [file1.gif] [file2.gif] [/i] [/k] [/v] [/?] Where: file1.gif file2.gif /i /k /v /d /? is the first screen image to be displayed. is the second screen image to be displayed. inverts all displayed images (show as negative) - used for some monochrome panels (works in monochrome mode only). exit the program and keep the image on the display - useful in batch file execution such as demonstrations. verbose mode - useful to determine GIF information if it is not known. leave the display on while loading image - useful for animation. produces the usage message.
13503SHOW.EXE Display Utility Issue Date: 01/01/29
S1D13503 X18A-B-001-05
Page 4
Epson Research and Development Vancouver Design Center
Examples:
13503show
with no arguments will run the program in split screen mode. This will display two predefined images, with screen one displaying horizontal bars and screen two displaying vertical bars. Screen two may be scrolled up and down using the arrow, page up, page down, home and end keys. displays the named GIF image. displays the two named GIF images in a split screen. Screen two may be scrolled up and down using the arrow, page up, page down, home and end keys.
13503show file.gif 13503show file1.gif file2.gif
Pressing the ESC key will terminate the program.
Comments
* * * * * * * 13503SHOW requires 13503BIOS.COM to be loaded prior to running. Split screen viewing is limited on dual panels. The view port is fixed in place at the top left of the bottom LCD panel. Panning and scrolling is still possible within the screen 2 view port. The size of screen two is determined by available memory and number of colors/gray shades. If there is insufficient memory for screen two 13503SHOW will not accept the two image files and will generate an error message. When loading two GIF images, it may take several seconds of apparent inactivity to load the second image into memory. The GIF format must be 2, 16 or 256 color, non-interlaced GIF89a format. 13503SHOW will clear the screen when the Esc key is pressed unless the /k switch is used in the command line. The file is loaded into the program at its image color depth (i.e., a 256 color image is initially displayed in 256 color mode, a 16 color image is initially displayed in 16 color mode).
Program Messages
ERROR: This program requires BIOS13503 to be loaded! The program 13503BIOS.COM must be run before 13503SHOW. Load 13503BIOS.COM and re-run 13503SHOW.EXE. File "filename" not found or cannot be opened for reading. The GIF file you are trying to display is not in your DOS path or not on your system. File is not GIF89a format. The GIF file contains an invalid format. 1350313503SHOW only supports GIF89a format. Insufficient video memory for second image. There is not enough video memory available to store both images.
S1D13503 X18A-B-001-05
13503SHOW.EXE Display Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
13503VIRT.EXE Display Utility
Document Number: X18A-B-002-05
Copyright (c) 2001Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-002-05
13503VIRT.EXE Display Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503VIRT.EXE DISPLAY UTILITY
13503VIRT.EXE demonstrates the virtual panning capabilities of the S1D13503. Two images larger than the display resolution are loaded in display memory. 13503VIRT.EXE will then display, in a split screen, a portion of each complete image while providing panning capabilities using the arrow keys for navigation.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box Windows DOS Full Screen OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : Seiko Epson 13503BIOS version 1.xx or later : Yes : 3.0 or greater : No : Yes : Yes : Yes
Installation
Copy the file 13503virt.exe to a directory that is in the DOS path on your hard drive.
Usage
13503VIRT is invoked from the DOS command line as follows: 13503virt g=n [/a] [/k] [/?] Where: g /a /k /? is the number of gray shades/colors: 2, 4, 16 or 256. automatically pan and scroll the image - useful for demonstrations. exit the program and keep the image on the display - useful in batch file execution for demonstrations. produces a usage message.
The program draws a test pattern of two images on the display. The user can navigate throughout either image using the numeric keypad. Use the arrow keys to pan and scroll the screen, Home to go to the top left, PG UP to go to the top right, End to go to the bottom left, Pg Dn to go to the bottom right, and 5 to go to the center of the image. Pressing Ctrl while using an arrow key steps the scroll or pan in smaller increments. Press the Num Lock key to allow navigation in the second image. Holding down the Shift key while pressing either the up or down arrow will move the split up or down. Pressing the ESC key terminates the program.
13503VIRT.EXE Display Utility Issue Date: 01/01/29
S1D13503 X18A-B-002-05
Page 4
Epson Research and Development Vancouver Design Center
Comments
* 13503VIRT requires 13503BIOS.COM to be loaded prior to running.
Program Messages
ERROR: This program requires 13503BIOS to be loaded! The program 13503BIOS.COM must be run before 13503VIRT.EXE. Load 13503BIOS.COM and then re-run 13503VIRT.EXE.
S1D13503 X18A-B-002-05
13503VIRT.EXE Display Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
13503BIOS.COM Utility
Document Number: X18A-B-003-05
Copyright (c) 1995, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-003-05
13503BIOS.COM Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503BIOS.COM UTILITY
13503BIOS is a Terminate and Stay Resident (TSR) program which replaces and/or supplements the PC video interrupt INT 10h. This program provides text, scroll, and cursor functionality when no VGA BIOS is present. Although the S1D13503 is not a VGA or EGA compatible controller, this program is supplied to give the user a familiar prompt. Within limits 13503BIOS simulates a VGA BIOS and will allow standard output functions to work. DOS programs such as Edlin, Format, Debug, and internal commands such as Copy, Ren, Mkdir, etc., should work. However, complex programs such as Edit, Qbasic, and Scandisk will not work. The standard output functions are handled by the VGA BIOS, if present.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box Windows DOS Full Screen OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : None or any VGA : Yes : 3.0 or greater : No : Yes : Yes : Yes
Installation
Copy the files 13503bios.com and 13503bios.ini to a directory that is in the DOS path on your hard drive.
Usage
13503BIOS.COM is run from the DOS command line. The file 13503bios.ini is the initialization file for 13503bios.com and must reside in the same directory as 13503bios.com. This file contains the default run parameters for 13503bios.com. These parameters may be changed within the initialization file or for one time usage on the command line as follows: 13503bios d=n g=n i=n m=n p=n x=n y=n [/?] [f=n] Where: d g i m p x y f ? is panel type: color or mono is the number of colors/gray shades: 2, 4, 16 or 256 is the panel interface data width: 4, 8 or 16 bits is the memory size in K bytes: 64 or 128 is the port address in hex: 300|310...360|370 is the horizontal panel size in pixels (decimal) is the vertical panel size in lines (decimal) is the 8-bit color panel format: 1 or 2 produces a usage message
13503BIOS.COM Utility Issue Date: 01/01/29
S1D13503 X18A-B-003-05
Page 4
Epson Research and Development Vancouver Design Center
Note that the port address must be the same as the physical address set on the S5D13503 evaluation board. Example: 13503BIOS d=color g=256 i=8 m=128 p=310 t=single x=320 y=240 f=2
Comments
* 13503BIOS can be used in conjunction with a Monochrome Display Adapter (mono) card. The standard DOS command MODE MONO will switch to the monochrome card and the DOS command MODE CO80 will switch to the LCD panel. 13503BIOS emulates mode 3, but any program that attempts to write directly to video memory, bypassing the video BIOS, will not display correctly. 13503BIOS can be used in conjunction with a VGA BIOS. In this case all TTY output will be displayed on the VGA monitor. When the S1D13503 video memory is specified as 64K bytes, the S1D13503 video memory will reside at D000h to DFFFh. For 128K bytes of S1D13503 video memory, the memory will reside at C000h to DFFFh.
* * *
Program Messages
ERROR: panels greater than 640 pixels not supported. More than 640 horizontal pixels has been specified for the panel in the command line. ERROR: panels greater than 480 lines not supported. More than 480 vertical lines has been specified for the panel in the command line. ERROR: invalid port specified. The port address (p) must be specified in the format 3x0 in the command line. The range is 300h to 370h in 10h increments. ERROR: not enough memory for panel. The panel specified is too large to run in 16 gray shades mode. Select 4 gray shades instead. ERROR: Video memory and VGA BIOS memory conflict. Both the S1D13503 video memory and the VGA BIOS are trying to use the memory at location C000h to CFFFh. ERROR: only 64k or 128k memory allowed. An invalid value has been specified for memory size (m) on the command line.
S1D13503 X18A-B-003-05
13503BIOS.COM Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
13503MODE.EXE Display Utility
Document Number: X18A-B-004-05
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-004-05
13503MODE.EXE Display Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503MODE.EXE DISPLAY UTILITY
13503MODE is a menu driven display utility for the S1D13503 which demonstrates the color /gray shades as well as available palettes. For 128K bytes of display memory either 4, 16 or 256 colors/gray shades are available.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box Windows DOS Full Screen OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : Seiko Epson 13503BIOS version 1.x or later : Yes : 3.0 or greater : No : Yes : Yes : Yes
Installation
Copy the file 13503mode.exe to a directory that is in the DOS path on your hard drive.
Usage
13503MODE is invoked from the DOS command line as follows: 13503mode g=n [/?] [/d] [/k] Where: g /? /d /k is the number of colors /gray shades: 2, 4, 16 or 256 produces a usage message. inhibits display writes on startup - useful for examaning the L.U.T. of a previously loaded image. exit the program and keep the image on the display - useful for batch file execution for demonstrations.
13503MODE displays a default color/gray shade pattern as a series of vertical or horizontal bars. The pattern, number of colors/gray shades and current palette may be modified by the user when possible. Instructions to modify these options appear when available. An image other than the default one may be used as follows: 1. 2. 3. run 13503bios.com if it is not already loaded load an image into the video buffer with 13503show.exe 13503show file.gif /k load 13503mode /d
The Look-Up Table (L.U.T.) of the image file displayed may now be manipulated by the user. Pressing the ESC key terminates the program and restores the original 13503BIOS settings.
13503MODE.EXE Display Utility Issue Date: 01/01/29
S1D13503 X18A-B-004-05
Page 4
Epson Research and Development Vancouver Design Center
Comments
* 13503MODE requires 13503BIOS.COM to be loaded prior to running.
Program Messages
ERROR: This program requires 13503BIOS to be loaded! The program 13503BIOS.COM must be run before 13503MODE. Load 13503BIOS.COM and then re-run 13503MODE.EXE.
S1D13503 X18A-B-004-05
13503MODE.EXE Display Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
13503PD.EXE Power Down Utility
Document Number: X18A-B-005-05
Copyright (c) 1996, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-005-05
13503PD.EXE Power Down Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503PD.EXE POWER DOWN UTILITY
13503PD is an OEM utility program for setting power down modes in the S1D13503 LCD Display Controller that supports the SOLLEX Super VGA Standard video BIOS extensions. It provides a simple method for setting power modes during power consumption testing.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box Windows DOS Full Screen OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : Seiko Epson 13503BIOS version 1.xx or later : Yes : 3.0 or greater : No : Yes : Yes : Yes
Installation
Copy the file 13503pd.exe to a directory that is in the DOS path on your hard drive.
Usage
13503PD is run from the DOS command line as follows: 13503pd ModeNumber Where: ModeNumber is a decimal number (0, 1, or 2) for the desired power down mode.
Example: typing the following command line activates power down mode 2: 13503pd 2 Output from the program can be redirected to an external DOS device such as a terminal attached to the serial port such as COM1 as shown below: 13503pd 2 > com1 Striking any key will set mode state 0 (no power down).
13503PD.EXE Power Down Utility Issue Date: 01/01/29
S1D13503 X18A-B-005-05
Page 4
Epson Research and Development Vancouver Design Center
Comments
* * 13503PD.EXE requires 13503BIOS.COM to be loaded prior to running. The following power modes are supported: Mode 0 Mode 0 operates at full power. Mode 1 or 2 S1D13503 will engage power down mode 1 or 2. The S1D13503 Look-Up Table will be disabled and all LCD signals are forced low.
Program Messages
Power Down Mode xx is set. The power down mode xx has been set. This message may not be visible if the active display controller is the S1D13503. ERROR: Cannot set power mode xx! 13503PD.EXE cannot set the power down mode requested - either 13503BIOS.COM is not loaded or the power down mode number exceeds 2. ERROR: This program requires 13503BIOS to be loaded! The program 13503BIOS.COM must be run before 13503PD. Load 13503BIOS and re-run 13503PD.EXE.
S1D13503 X18A-B-005-05
13503PD.EXE Power Down Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
13503READ.EXE Diagnostic Utility
Document Number: X18A-B-006-05
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-B-006-05
13503READ.EXE Diagnostic Utility Issue Date: 01/01/29
Epson Research and Development Vancouver Design Center
Page 3
13503READ.EXE DIAGNOSTIC UTILITY
13503READ is an OEM utility program which enables the user to read the S1D13503 register contents. It is a useful utility for OEMs wishing to submit a problem report for the video controller. If run with 13503BIOS loaded, it will try to interpret the BIOS settings.
Program Requirements
Video Controller Display Type BIOS DOS Program DOS Version Windows Program Windows DOS Box OS/2 DOS Full Screen : S1D13503 : Up to 640x480 LCD : Seiko Epson 13503BIOS.COM (optional) : Yes : 3.0 or greater : No : Yes : Yes
Windows DOS Full Screen : Yes
Note 13503READ uses "stdout" calls and may be redirected to a file or piped to a DOS filter such as MORE.COM.
Installation
Copy the file 13503read.exe to a directory that is in the DOS path on your hard drive.
Usage
From DOS prompt, type the following: 13503read [p=n] [/?] Where: 13503read without any argument will read the S1D13503 registers, including the palettes. p is the S1D13503 port address in hex (e.g. 310). /? produces a usage message.
Example:
to generate a report, simply type 13503read [port] > report.txt and the information which 13503READ obtains will be stored in the file report.txt.
13503READ.EXE Diagnostic Utility Issue Date: 01/01/29
S1D13503 X18A-B-006-05
Page 4
Epson Research and Development Vancouver Design Center
Comments
* * It is not necessary to specify a port address if 13503BIOS has previously been loaded. 13503READ will search for 13503BIOS.COM. If this program is found the port address reported by 13503BIOS will be used. If the port address is specified on the 13503READ command line the two port addresses are compared and if different an error message is generated. 13503READ will accept any port address, however, the S5U13503 can only be configured to an address in the range of 300h through 370h.
*
Program Messages
ERROR: 13503 registers not responding at port address [port]. 13503READ has not found an S1D13503 at the port address specified. Check the command line port setting for 13503BIOS and/or 13503READ to ensure it is correct and re-run the program. ERROR: 13503READ requires a port address. 13503READ has not detected 13503BIOS.COM to obtain the port address and no port address was specified on the command line. Either specify a port address on the 13503READ command line or run 13503BIOS.COM prior to running 13503READ. ERROR: 13503BIOS reports a port address of [port], which is different from the specified port address of [port]. The port address entered for 13503READ is different than the one entered for 13503BIOS.COM. Specify the same port address on the 13503READ command line as the one in 13503BIOS.COM and the physical address of the S5U13503 evaluation board and re-run the program. WARNING: 13503BIOS state is out of sync with S1D13503 registers. One or more of the following command line items reported by 13503BIOS does not match the values found in the S1D13503 registers; horizontal panel size, vertical panel size, number of colors/gray shades, or panel type (single or dual).
S1D13503 X18A-B-006-05
13503READ.EXE Diagnostic Utility Issue Date: 01/01/29
S1D13503 Dot Matrix Graphics LCD Controller
S5U13503B00C Rev. 1.0 Evaluation Board User Manual
Document Number: X18A-G-007-05
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
TABLE OF CONTENTS
1 2 3 S5U13503B00C REV 1.0 EVALUATION BOARD
1.1
. . . . . . . . . . . . . . . . . . .7
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
INSTALLATION AND CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . .8 TECHNICAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 ISA Bus Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Non-ISA Bus Support . . . . . . . . . . . . . . . . . . . . . . . . . . 14 SRAM Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 . . . . . . . . . . . . . . . . . . . . . . . 14 Monochrome LCD Support Power Save Modes
Color LCD Support . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . . . . . . . . . . . . 15 Adjustable LCD Panel Negative Power Supply . . . . . . . . . . . . . . . . 15 Adjustable LCD Panel Positive Power Supply Crystal Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.10 Oscillator Support . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.11 CPU/Bus Interface Header Strips . . . . . . . . . . . . . . . . . . . . . 16 3.12 Schematic Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Appendix A Appendix B
Parts List
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
S5U13503B00C Rev. 1.0 Schematic Diagrams . . . . . . . . . . . . 18
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 4
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 5
LIST OF TABLES
Table 2-1: Configuration DIP Switch Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Table 2-2: I/O Mapping Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Table 2-3: Decoding Jumper Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Table 2-4: LCD Signal Connector J1 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Table 2-5: CPU/BUS Connector H1 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Table 2-6: CPU/BUS Connector H2 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
LIST OF FIGURES
Figure 1: S5U13503B00C Rev. 1.0 Schematic Diagram (1 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Figure 2: S5U13503B00C Rev. 1.0 Schematic Diagram (2 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Figure 3: S5U13503B00C Rev. 1.0 Schematic Diagram (3 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Figure 4: S5U13503B00C Rev. 1.0 Schematic Diagram (4 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Figure 5: S5U13503B00C Rev. 1.0 Schematic Diagram (5 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Figure 6: S5U13503B00C Rev. 1.0 Schematic Diagram (6 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 7: S5U13503B00C Rev. 1.0 Schematic Diagram (7 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . 24
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 6
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 7
1 S5U13503B00C REV 1.0 EVALUATION BOARD
This manual reflects the use of the S5U13503B00C Rev 1.0 evaluation board in conjunction with the S1D13503 LCD Controller. All appropriate components are surface-mount to reduce cost and minimize board space.
1.1 Features
* * * * * * * * * * * * * * 100 pin QFP5 package SMD technology for all appropriate devices 4/8-bit Monochrome STN LCD display support 4/8/16-bit Color STN LCD display support 8/16-bit ISA Bus support 5V operation Two terminal crystal support (up to 25.0MHz) Oscillator support 16-bit wide, 128K bytes SRAM support Configuration Options Support for Software Power Save Modes On-board adjustable LCD BIAS negative power supply On-board adjustable LCD BIAS positive power supply CPU/Bus Interface Header strips for Non-ISA Bus Support
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 8
Epson Research and Development Vancouver Design Center
2 INSTALLATION AND CONFIGURATION
The S1D13503 uses the display memory data lines (VD[15:0]) as configuration inputs which are read on power-up. For the purpose of this design, most of these configuration inputs have been factory set and therefore are not configurable. An eight position DIP switch is provided for the selection of the following: Table 2-1: Configuration DIP Switch Settings Switch SW1-1 SW1-2 SW1-3 SW1-4 SW1-5 SW1-6 SW1-7 SW1-8 Signal VD0 VD1 VD2 VD3 VD7 VD8 VD9 Closed 16-bit ISA Bus interface Direct-mapping I/O M68K CPU Interface Byte-swap high and low data bytes I/O mapping address bit 4 I/O mapping address bit 5 I/O mapping address bit 6 Reserved Open 8-bit ISA Bus interface Indexed I/O ISA Bus Interface No byte-swap See Table 2-2, "I/O Mapping Example" Reserved
Note The polarity of the Configuration Dip Switches is Closed = "1" or "high", Open = "0" or "low". Note VD[15:0] have internal pull-down resistors and therefore external pull-up resistors are only required if the configuration option requires a "1" state on power-up. Factory set fixed options on this board are: * * * 16-bit display memory interface. All 128K bytes of video memory is available at memory segment $D with software selecting one of two 64K memory banks (See "SRAM Support" on page 14). This board is pre-set to use indexed I/O with address $03y0 (0000 0011 0yyy 000x), where x is don't care and yyy can be configured with dip-switch SW1-5 through SW1-7. The factory setting of yyy = 001, i.e., I/O address = $0310 and $0311.
Direct-mapping I/O is only available for Non-ISA Bus support. When using direct-mapped I/O, the I/O address is $03yx (0000 0011 0yyy xxxx), where x is don't care and yyy can be configured with dip-switch SW1-5 through SW1-7. If yyy = 001, then the I/O address for Aux[00] = $0310, I/O address for Aux[01] = $0311, I/O address for AUX[02] = $0312 and so on. (See Non-ISA Bus Support, on page 14.) Table 2-2: I/O Mapping Example I/O Mapping Address (Hex) bit 6 bit 5 bit 4 0 0 1
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 9
Table 2-3: Decoding Jumper Setting JP1 JP2 JP3 JP4 JP5 Description Set to the same polarity as SW1-1 (VD0) Set to the same polarity as SW1-5 (VD7) Set to the same polarity as SW1-6 (VD8) Set to the same polarity as SW1-7 (VD9) XSCL2 clock for Passive Color 8-bit single 640x480 LCD Panel (Format 1) (see Functional Specification, X07-SP-001-xx) 1-2 1 1 1 1 NC 2-3 0 0 0 0 XSCL2
Note These jumpers are necessary for the external ISA Bus decode logic. Hard-Wired Configuration Inputs For ISA bus support options, external 10K ohm pull-up resistors have been assembled, and are connected to signal lines VD11, VD12, VD14 and VD15 (R6, R5, R4 and R3 respectively). For Non-ISA bus support (see page 14), the following signal lines may require the 10K ohm pull-up resistors installed: VD4 (R18), VD5 (R19), VD6 (R20), VD10 (R21) and/or VD13 (R17) See the S1D13503 Hardware Functional Specification, X18A-A-001-xx, page 21 for configuration details.
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 10
Epson Research and Development Vancouver Design Center
LCD Signal Connector Pinout
Table 2-4: LCD Signal Connector J1 Pinout LCD Connector Pin No. 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2-26 (even pins) 28 30 32 34 36 38 40 Color STN LCD 8-bit 8-bit Single Single 8-bit (Format 1a) (Format 2a) Dual
Aux[03] bit 3 =0, Aux[03] bit 3 =1, Aux[01] bit 2=1 Aux[01] bit 2=1
Mono STN LCD
S1D13503 Pin Name
16-bit Single/Dual LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3 LD4b LD5b LD6b LD7b UD4b UD5b UD6b UD7b XSCL LP YD GRND
4-bit
8-bit
4-bit
LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3
LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3
LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3
LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3
UD0 UD1 UD2 UD3
LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3
UD0 UD1 UD2 UD3
XSCL WF/XSCL2 LP YD GRND N/C VLCD VCC +12 V VDDH WF/XSCL2 LCDENB
a b
XSCL LP YD GRND
XSCL XSCL2 LP YD GRND
XSCL LP YD GRND
XSCL LP YD GRND
XSCL LP YD GRND
XSCL LP YD GRND
VLCD +5 V +12 V VDDH WF /LCDPWR
VLCD +5 V +12 V VDDH WF /LCDPWR
VLCD +5 V +12 V VDDH /LCDPWR
VLCD +5 V +12 V VDDH WF /LCDPWR
VLCD VLCD VLCD +5 V +5 V +5 V +12 V +12 V +12 V VDDH VDDH VDDH WF WF WF /LCDPWR /LCDPWR /LCDPWR
See Sections 7.4.3 and 7.4.5 of the S1D13503 Hardware Functional Specification, X18A-A-001.01, for details. From external logic; see Section 3.5 for details.
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 11
CPU / BUS Interface Connector Pinouts
Table 2-5: CPU/BUS Connector H1 Pinout Connector Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 CPU/BUS Pin Name SD0 SD1 SD2 SD3 GND GND SD4 SD5 SD6 SD7 GND GND SD8 SD9 SD10 SD11 GND GND SD12 SD13 SD14 SD15 RESET GND GND GND +12V +12V /SBHE /IOSC /MEMCS Comments Connected to DB0 of the S1D13503 Connected to DB1 of the S1D13503 Connected to DB2 of the S1D13503 Connected to DB3 of the S1D13503 Ground Ground Connected to DB4 of the S1D13503 Connected to DB5 of the S1D13503 Connected to DB6 of the S1D13503 Connected to DB7 of the S1D13503 Ground Ground Connected to DB8 of the S1D13503 Connected to DB9 of the S1D13503 Connected to DB10 of the S1D13503 Connected to DB11 of the S1D13503 Ground Ground Connected to DB12 of the S1D13503 Connected to DB13 of the S1D13503 Connected to DB14 of the S1D13503 Connected to DB15 of the S1D13503 Connected to the RESET signal of the S1D13503 Ground Ground Ground 12 volt supply 12 volt supply Connected to the BHE# signal of the S1D13503 Connected to the IOCS# signal of the S1D13503 Connected to the MEMCS# signal of the S1D13503
IOCHRDY Connected to the READY signal of the S1D13503
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 12
Epson Research and Development Vancouver Design Center
Table 2-6: CPU/BUS Connector H2 Pinout Connector Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 CPU/BUS Pin Name SA0 SA1 SA2 SA3 SA4 SA5 SA6 SA7 GND GND SA8 SA9 SA10 SA11 SA12 SA13 GND GND SA14 SA15 SA16 SA17 SA18 SA19 GND GND +5V +5V /IOW /IOR /SMEMW /SMEMR Comments Connected to AB0 of the S1D13503 Connected to AB1 of the S1D13503 Connected to AB2 of the S1D13503 Connected to AB3 of the S1D13503 Connected to AB4 of the S1D13503 Connected to AB5 of the S1D13503 Connected to AB6 of the S1D13503 Connected to AB7 of the S1D13503 Ground Ground Connected to AB8 of the S1D13503 Connected to AB9 of the S1D13503 Connected to AB10 of the S1D13503 Connected to AB11 of the S1D13503 Connected to AB12 of the S1D13503 Connected to AB13 of the S1D13503 Ground Ground Connected to AB14 of the S1D13503 Connected to AB14 of the S1D13503 Connected to U2 pin 20 Connected to AB17 of the S1D13503 Connected to AB18 of the S1D13503 Connected to AB19 of the S1D13503 Ground Ground 5 volt supply 5 volt supply Connected to the IOW# signal of the S1D13503 Connected to the IOR# signal of the S1D13503 Connected to the MEMW# signal of the S1D13503 Connected to the MEMR# signal of the S1D13503
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 13
3 TECHNICAL DESCRIPTION
3.1 ISA Bus Support
This board directly supports the 8/16-bit ISA Bus with Indexed I/O via a standard AT edge connector. Only those configuration resistors needed for ISA Bus support have been assembled, refer to Hard-Wired Configuration Inputs, on page 9 for configuration details. External logic has been added to provide signals which the S1D13503 does not directly support. See Application Note X18A-G-003-xx for details. This board is pre-set to use indexed I/O with base address 000 0011 0yyy 000x, where x is don't care and yyy can be configured through dip-switch SW1-7 to SW1-5. The factory setting of yyy = 001, i.e., I/O address = $0310 and $0311. The display memory bank address is described in SRAM Support, on page 14. Example: I/O I/O I/O I/O
write $310 01 :set index = 1 read $311 :read contents of AUX[1] write $310 05 :set index = 5 write $311 07 :write 07 to AUX[5]
This board has been designed to operate as a stand-alone card or in conjunction with either a VGA or a monochrome display adapter card. With VGA When the VGA display adapter used is an ISA or VL bus with an 8-bit BIOS EPROM (normally just one ROM on the adapter card) the S5U13503B00C must be configured as follows: SW1-1 open SW1-2 to 4 open SW1-5 to 7 JP1 2-3 shorted JP2 to JP4 JP5 : 8-bit operation, necessary to prevent MEMCS16# conflict when reading VGA BIOS : for ISA bus support with indexed I/O : set as desired : to reflect SW1-1 polarity : to reflect SW1-5 to 7 polarity : set as required for panel
When the ISA or VL bus VGA video adapter has a 16-bit BIOS EPROM (normally two ROMs on the adapter card), the 16-bit ISA bus interface (SW-1 closed) must be used on the S5U13503B00C. When using the S5U13503B00C in conjunction with a PCI bus VGA display adapter either the 16-bit ISA bus interface or the 8-bit ISA bus interface may be used on the S5U13503B00C. With Monochrome When using the S5U13503B00C in conjunction with a monochrome display adapter either the 16-bit ISA bus interface or the 8-bit ISA bus interface may be used on the S5U13503B00C. Stand-Alone The S5U13503B00C can be used as a stand-alone video adapter. When used as a stand-alone video adapter the BIOS setup program for the computer must support and have "No Video" selected as the video adapter. The 13503BIOS.COM utility program can be used with the evaluation board to simulate a standard video BIOS, thus providing text and cursor functionality. See the 13503BIOS.COM Utility manual, X18A-B-003-xx for details.
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 14
Epson Research and Development Vancouver Design Center
3.2 Non-ISA Bus Support
This evaluation board was specifically designed to support the standard 8/16-bit ISA bus. However, as the S1D13503 does support other bus interfaces, header strips have been provided containing all necessary I/O pins. (See Table 2-1, Configuration DIP Switch Settings, on page 8, Hard-Wired Configuration Inputs, on page 9, and CPU/Bus Interface Header Strips, on page 16, for details.) When using the header strips to provide the bus interface observe the following: 1. 2. 3. All I/O signals on the ISA bus card edge must be isolated from the ISA Bus (do not plug the card into a computer). Voltage lines are provided on the header strips. U2, a TIBPAL22V10 PAL, is currently used to provide the S1D13503 IOCS# (pin 23) and MEMCS# (pin 22) input signals for ISA bus use. This functionality must now be provided externally as U2 must be removed. Linear addressing of the entire 128K bytes of video RAM is available. Due to the memory banking method used for ISA bus support, U2 must be removed and H2, pin 21, must be physically connected to U2, pin20, in order to provide SA16 to U1. If it becomes necessary / desirable to change the configuration information associated with VD[15:0], additional 10K Ohm pull-up resistors can be added to those affected VD lines as there are place holders available on the PCB.
4.
3.3 SRAM Support
The S5U13503B00C board supports 16-bit wide, 128K byte SRAM. In order for the S5U13503B00C to operate in conjunction with a VGA card and not cause memory space conflicts, all 128K bytes of memory is available through two 64K byte banks. The first 64K bank is selected by reading from the base I/O mapping address + 2 (address $312 if the I/O address is $310) and the second 64K bank is selected by writing to I/O address + 2 (address $312 if the I/O address is $310). The display memory banks reside at the 64K byte memory segment $D. I/O read $312 I/O write $312 :select memory bank 0 :select memory bank 1
3.4 Monochrome LCD Support
The S1D13503 directly supports 4/8-bit Dual and Single monochrome LCD panels. All the necessary signals are provided on the 40-pin ribbon cable header. The interface signals are alternated with grounds on the cable to reduce cross talk and noise related problems. Refer to Table 2-4, LCD Signal Connector J1 Pinout, on page 10 for specific settings.
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 15
3.5 Color LCD Support
The S5U13503B00C directly supports 4/8/16-bit Dual and Single color LCD panels. All the necessary signals are provided on the 40-pin ribbon cable header. The interface signals are alternated with grounds on the cable to reduce cross talk and noise related problems. To facilitate interfacing a 16-bit panel to the S1D13503, the following external circuit is implemented on-board:
UD[3:0] LD[3:0] UD[3:0] LD[3:0]
D
Q
FROM S1D13503
UD[7:4] LD[7:4]
TO 16-BIT PANEL
74LS374 XSCL
CK
This circuit provides 16-bit color panel support by latching the 8 bits of output data from the S1D13503 to provide 16 bits of data on the next clock. Refer to Table 2-4, LCD Signal Connector J1 Pinout, on page 10 for specific settings.
3.6 Power Save Modes
The S1D13503 supports two software Power Save Modes. The utility program 13503PD.EXE is supplied to control these software modes. The software modes are controlled by directly writing the S1D13503 associated internal registers.
3.7 Adjustable LCD Panel Negative Power Supply
The majority of Monochrome LCD panels require a negative power supply to provide between -18 V and -23 V (Iout=45mA). For ease of implementation, such a power supply has been provided as an integral part of this design. The signal VLCD can be adjusted by R11 (100K potentiometer) to provide an output voltage from -14 V to -23 V and enabled/disabled by the control signal LCDENB. Note LCDENB is directly controlled by register AUX[01], bit 4, of the S1D13503. The VLCD power supply used on the S5U13503B00C requires a logic "1" to disable it. As the signal LCDENB is a logic "0" at power-up, it is inverted by external logic to disable VLCD and prevent damaging the panel connected to the S5U13503B00C. Determine the panel's specific power requirements and set the potentiometer accordingly before connecting the panel.
3.8 Adjustable LCD Panel Positive Power Supply
The majority of LCD Passive Color panels and most single Monochrome 640x480 STN LCD panels require a positive power supply to provide between +23V and +40V (Iout=45mA). For ease of implementation, such a power supply has been provided as an integral part of this design. The signal VDDH can be adjusted by R8 (100K potentiometer) to provide an output voltage from +23 V to +40 V and enabled/disabled by the control signal LCDENB. Note LCDENB is directly controlled by register AUX[01], bit 4, of the S1D13503. The VDDH power supply used on the S5U13503B00C requires a logic "1" to disable it. As the signal LCDENB is a logic "0" at power-up, it is inverted by external logic to disable VLCD and prevent damaging the panel connected to the S5U13503B00C. Determine the panel's specific power requirements and set the potentiometer accordingly before connecting the panel.
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 16
Epson Research and Development Vancouver Design Center
3.9 Crystal Support
The input crystal frequency may be up to 25.0 Mhz depending on the specific panel size and frame rate desired. Refer to Section 9.3 of the S1D13503 Functional Specification, Drawing Office No. X18A-A-001-xx for further details.
3.10 Oscillator Support
The input oscillator frequency used may be up to 25.0 MHz, depending on the specific panel size and frame rate desired. Refer to Section 9.3 of the S1D13503 Functional Specification, Drawing Office No. X18A-A-001-xx for further details. Note When the oscillator package is used capacitors C7, C8 and resistor R16 must be removed.
3.11 CPU/Bus Interface Header Strips
All of the CPU/Bus interface pins of S1D13503, with the exception of SA16, are connected to the header strips H1 and H2 for easy interface to a CPU/Bus other than the ISA bus. Refer to Table 2-5, CPU/BUS Connector H1 Pinout, on page 11 and Table 2-6, CPU/BUS Connector H2 Pinout, on page 12 for specific settings. Note These headers only provide the CPU/Bus interface signals from S1D13503, when MC68000 interface is selected (SW13 closed), external decoding logic MUST be used to access the S1D13503.
3.12 Schematic Notes
This evaluation board may have been modified and therefore the following schematics may not reflect the actual implementation. Please request updated information before starting any hardware design.
S1D13503 X18A-G-007-05
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 17
Appendix A Parts List
Item # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Qty/board 13 2 2 3 3 2 5 1 1 2 1 1 3 2 4 1 1 1 1 1 1 1 5 1 1 1 2 1 2 1 1 1 1 1 Designation C11-C23 C9 -C10 C7-C8 C2-C4 C1, C5, C6 H1, H2 JP1-JP5 J1 L1 L2-L3 Q1 Q2 R2, R13, R14 R12, R15 R3-R6 R7 R8 R9 R10 R11 R16 R1 R17-R21 S1 U1 U2 U3, U4 U5 U6, U7 U8 U9 U10 U11 Y1 Part Value 0.01uF 10uF 7pF 10uF / 63V 56uF/35V CON32A Header 3 CON40A 1uH Ferrite Bead 2N3906 2N3903 1K 100K 10K 470K 200K 10K 14K 100K 2M 0 Ohm 10K SW-DIP-8 S1D13503 TIBPAL22V10 74LS688 74LS09 RD-0412 EPN001 OSC-14 74LS374 25.175Mhz Description 0.01uF, 1206 pckg 10uF / 25V Tantalum D-SIZE 7pF, 1206 pckg Electrolytic / Radial (LXF63VB10RM5X11LL) LXF35VB56RM6X11LL 32-pin Dual Row Header 3-pin single Row Header Shrouded Header 40 pin Dual-row center-key PTH Dale Inductor IM-4-1.0uH PTH Fair-rite 2743001111 PNP Signal Transistor TO-92 PTH NPN Signal Transistor TO-92 PTH 1K Ohm/1206/5% 100K Ohm/1206/5% 10K Ohm/1206/5% 470K Ohm/1206/5% 200K Ohm Trim POT Spectrol 63S204T607 10K 10-pin SIP, Part No. 4610X-101-103 14K Ohm/1206/5% 100K Ohm Trim POT Spectrol 63S104T607 2M Ohm/1206/5% 0 Ohm / 1206 / 1% 10K Ohm/1206/5% DIP Switch 8-position QFP5-100-S2 Texas Ins. PAL, Socketed DW020 SMT Package D014 SMT Package SRM20100LTM-70 128K x 8 SRAM XENTEK - Positive Power Supply XENTEK - Negative Power Supply 14-pin Socket for 25.0MHz, 12.0Mhz, and 6.0Mhz 14pin Oscillators DW020 SMT Package Crystal
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
S1D13503 X18A-G-007-05
Page 18
Appendix B S5U13503B00C Rev. 1.0 Schematic Diagrams
S1D13503 X18A-G-007-05
U1 DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 DB8 DB9 DB10 DB11 DB12 DB13 DB14 DB15 LD[0..3] 77 76 75 74 LD0 LD1 LD2 LD3 UD[0..3] 73 72 71 70 UD0 UD1 UD2 UD3 LD[0..3] LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3 80 79 78 81 82 WF/XSCL2 LP YD XSCL LCDENB SA0 SA1 SA2 SA3 SA4 SA5 SA6 SA7 SA8 SA9 SA10 SA11 SA12 SA13 SA14 SA15 NEW-SA16 SA17 SA18 SA19 AB0 AB1 AB2 AB3 AB4 AB5 AB6 AB7 AB8 AB9 AB10 AB11 AB12 AB13 AB14 AB15 AB16 AB17 AB18 AB19 BHE# IOCS# IOW# IOR# UD[0..3] /SBHE /IOCS /IOW /IOR /MEMCS /SMEMW /SMEMR OSC1 OSC2 92 93 87 88 89 84 85 86 91 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 SD0 SD1 SD2 SD3 SD4 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 94 95 96 97 98 99 100 1 4 5 6 7 8 9 10 11 SD[0..15] /IOCS /IOW /IOR /MEMCS /SMEMW /SMEMR OSC1 OSC2 WF/XSCL2 LP YD XSCL LCDENB RESET RESET 32 WF/XSCL2 LP MEMCS# YD MEMW# XSCL MEMR# LCDENB OSC1 OSC2 VA0 VA1 VA2 VA3 RESET VA4 VA5 VA6 VA7 VA8 VA9 VA10 VA11 VA12 VA13 VA14 VA15 33 34 35 36 37 38 39 40 41 42 43 62 63 64 65 66 VA0 VA1 VA2 VA3 VA4 VA5 VA6 VA7 VA8 VA9 VA10 VA11 VA12 VA13 VA14 VA15 VA[0..15] +5V VD0 VD1 VD2 VD3 VD4 VD5 VD6 VD7 VD8 VD9 VD10 VD11 VD12 VD13 VD14 VD15 3 53 VDD VDD VSS VSS S1D13503 +12V +5V GND R1 0 READY 2 52 VWE# VOE# VCS0# VCS1# 67 83 68 69 90 /VWE /VOE /VCS0 /VCS1 IOCHRDY 44 45 46 47 48 49 50 51 54 55 56 57 58 59 60 61 VD0 VD1 VD2 VD3 VD4 VD5 VD6 VD7 VD8 VD9 VD10 VD11 VD12 VD13 VD14 VD15 VD[0..15] /VWE /VOE /VCS0 /VCS1 IOCHRDY S-MOS SYSTEMS INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size B Date: Document Number 13503-1.sch December 13, 1996 Sheet 1 of REV 1.0 7
SA[0..19]
NEW-SA16 /SBHE
Figure 1: S5U13503B00C Rev. 1.0 Schematic Diagram (1 of 7)
+12V
+5V
Epson Research and Development Vancouver Design Center
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
VSS
SA[1..19] U2 /IODC2TO10 /IOCS16EN NEW-SA16 /LCDENB LCDENB /IOEN REFRESH +5V 24 /IOW LCDENB /IOEN REFRESH /IOR /IOCS /MEMCS NEW-SA16 SA1 SA11 SA12 SA13 SA14 SA15 SA16 SA17 SA18 SA19 12 GND VCC TIBPAL22V10 CLK/IN IN IN IN IN IN IN IN IN IN IN I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O IN 1 2 3 4 5 6 7 8 9 10 11 23 22 21 20 19 18 17 16 15 14 13
Epson Research and Development Vancouver Design Center
+5V +5V U3 /P=Q 19 JP4 3 2 1 HEADER 3 ADDBIT6 ADDBIT5 ADDBIT4 JP3 3 2 1 HEADER 3 +5V 1 VCC GND 10 74LS09 D014 U5B 4 6 5 74LS09 D014 +5V JP1 U4 /8BITBI /P=Q 19 10 74LS09 D014 U5D 12 11 13 +5V VCC GND 1 G 74LS688 DW020 MEMORY ADDRESS = C SEGMENT OR C & D SEGMENTS 20 10 74LS09 D014 Unused gate 3 2 1 HEADER 3 16-BIT INTERFACE = 1 8-BIT INTERFACE = 0 LA17 LA18 LA19 LA20 LA21 LA22 LA23 2 4 6 8 11 13 15 17 P0 P1 P2 P3 P4 P5 P6 P7 9 8 /MEMCS16 U5C /IOCS16 20 2 3 /LCDPWR JP2 3 2 1 SA10 G 74LS688 DW020 1 HEADER 3 SA9 SA8 SA7 SA6 SA5 SA4 SA3 SA2 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 3 5 7 9 12 14 16 18 2 4 6 8 11 13 15 17 P0 P1 P2 P3 P4 P5 P6 P7
+5V
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
R2 1K U5A 3 5 7 9 12 14 16 18 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 S-MOS SYSTEMS, INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size B Date: Document Number 13503-2.SCH December 13, 1996 Sheet 2 of REV 1.0 7
Figure 2: S5U13503B00C Rev. 1.0 Schematic Diagram (2 of 7)
LA[17..23]
+12V
+12V
+5V
+5V
VSS
GND
S1D13503 X18A-G-007-05
Page 19
Page 20
+5V
S1D13503 X18A-G-007-05
11111111 1 R9H 10K 1 0 R9I 10K R18 10K 23456789 R19 10K R20 10K R21 10K R17 10K R3 10K R4 10K R5 10K R6 10K R9A 10K 1111111 65432109 S1 SW DIP-8 12345678 FOR 68000 MPU SUPPORT VD9 VD8 VD7 VD3 VD2 VD1 VD0 VD11 VD12 VD14 VD15 VD13 VD10 VD6 VD5 VD4 (IOBIT6) (IOBIT5) (IOBIT4) (NO BYTESWAP) (ISA) (INDEXING) (8BITBI) VD[0..15] VD[0..15] VA[0..15] U6 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 21 22 23 25 26 27 28 29 VD0 VD1 VD2 VD3 VD4 VD5 VD6 VD7 U7 DO1 DO2 DO3 DO4 DO5 DO6 DO7 DO8 21 22 23 25 26 27 28 29 VD8 VD9 VD10 VD11 VD12 VD13 VD14 VD15 +5V +5V NC OE WE CS1 CS2 VDD VSS 8 24 SRM20100LTM-70 /VOE /VWE /VCS0 /VCS1 9 32 5 30 6 +5V VA0 VA1 VA2 VA3 VA4 VA5 VA6 VA7 VA8 VA9 VA10 VA11 VA12 VA13 VA14 VA15 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 20 19 18 17 16 15 14 13 3 2 31 1 12 4 11 7 10 VA0 VA1 VA2 VA3 VA4 VA5 VA6 VA7 VA8 VA9 VA10 VA11 VA12 VA13 VA14 VA15 20 19 18 17 16 15 14 13 3 2 31 1 12 4 11 7 10 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 OE WE CS1 CS2 +5V NC VDD VSS SRM20100LTM-70 9 8 24 32 5 30 6 /VOE /VWE /VCS0 /VCS1 S-MOS SYSTEMS INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size B Date: Document Number 13503-3.SCH December 12, 1996 Sheet 3 of REV 1.0 7
Figure 3: S5U13503B00C Rev. 1.0 Schematic Diagram (3 of 7)
+12V
+12V
+5V
+5V
Epson Research and Development Vancouver Design Center
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
VSS
GND
LD[0..3] Mono/Color LCD Connector UD[0..3] J1 LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3 LD4 LD5 LD6 LD7 UD4 UD5 UD6 UD7 XSCL XSCL2 LP YD 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 WF/XSCL2 /LCDPWR VLCD +5V +12V VDDH WF/XSCL2 /LCDPWR CON40A JP5 3 2 1 HEADER 3 UD[0..3]
LD[0..3]
Epson Research and Development Vancouver Design Center
XSCL WF/XSCL2 LP YD
U11 LD0 LD1 LD2 LD3 UD0 UD1 UD2 UD3 D0 D1 D2 D3 D4 D5 D6 D7 VCC OC CLK GND 74LS374 DW020 +5V 20 10 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 1 11 3 4 7 8 13 14 17 18 LD4 LD5 LD6 LD7 UD4 UD5 UD6 UD7 2 5 6 9 12 15 16 19
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
H1 SD0 SD2 GND SD4 SD6 GND SD8 SD10 GND SD12 SD14 RESET GND +12V /SBHE /IOCS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 CON32A SD1 SD3 GND SD5 SD7 GND SD9 SD11 GND SD13 SD15 GND GND +12V IOCHRDY /MEMCS SA0 SA2 SA4 SA6 GND SA8 SA10 SA12 GND SA14 SA16 SA18 GND +5V /IOW /SMEMW H2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 CON32A SA1 SA3 SA5 SA7 GND SA9 SA11 SA13 GND SA15 SA17 SA19 GND +5V /IOR /SMEMR CPU/BUS I/F +12V +5V GND S-MOS SYSTEMS INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size Document Number B Date: 13503-4.SCH December 13, 1996 Sheet 4 of REV 1.0 7
Figure 4: S5U13503B00C Rev. 1.0 Schematic Diagram (4 of 7)
+12V
+5V
VSS
S1D13503 X18A-G-007-05
Page 21
Page 22
S1D13503 X18A-G-007-05
+5V AT1 SD7 SD6 SD5 SD4 SD3 SD2 SD1 SD0 RESET +12V /SMEMW /SMEMR /IOW /IOR IOCHRDY /IOEN AT2 SA19 SA18 SA17 SA16 SA15 SA14 SA13 SA12 SA11 SA10 SA9 SA8 SA7 SA6 SA5 SA4 SA3 SA2 SA1 SA0 AT CON-A SA[0..19] AT CON-B 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 /IOCHCK SD7 SD6 SD5 SD4 SD3 SD2 SD1 SD0 IOCHRDY AEN SA19 SA18 SA17 SA16 SA15 SA14 SA13 SA12 SA11 SA10 SA9 SA8 SA7 SA6 SA5 SA4 SA3 SA2 SA1 SA0 REFRESH GND RESET +5V IRQ9 -5V DRQ2 -12V OWS +12V GND /SMEMW /SMEMR /IOW /IOR /DACK3 DRQ3 /DACK1 DRQ1 /REFRESH CLK IRQ7 IRQ6 IRQ5 IRQ4 IRQ3 /DACK2 T/C BALE +5V OSC GND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 AT3 /SBHE LA23 LA22 LA21 LA20 LA19 LA18 LA17 AT4 /MEMCS16 /IOCS16 LA[17..23] SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 AT CON-C SD[0..15] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /SBHE LA23 LA22 LA21 LA20 LA19 LA18 LA17 /MEMR /MEMW SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 AT CON-D /MEMCS16 /IOCS16 IRQ10 IRQ11 IRQ12 IRQ15 IRQ14 /DACK0 DRQ0 /DACK5 DRQ5 /DACK6 DRQ6 /DACK7 DRQ7 +5V MASTER GND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 +5V S-MOS SYSTEMS INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size Document Number B Date: 13503-5.SCH December 12, 1996 Sheet 5 of REV 1.0 7
Figure 5: S5U13503B00C Rev. 1.0 Schematic Diagram (5 of 7)
+12V
+12V
+5V
+5V
Epson Research and Development Vancouver Design Center
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
VSS
GND
U8 RD-0412
D C _ I N GGGGGGG NNNNNNN DDDDDDD 11 4567801 1 1 VDDH adjustable 23v to 40v 1uH C1 56uF/35V R7 470K 2 1 2 L1 2 3 PSVCC
R E M O T E D C _ O U T
V O U T _ A ND C9 J
Epson Research and Development Vancouver Design Center
3 R8 200k 2 1 C2 10uF/63V LOW ESR C3 10uF/63V LOW ESR C4 10uF/63V
R10 14k
PSGND
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
+5V R13 /LCDPWR 1K U9 EPN001 2 1 Q1 32N3906 D C _ I N D C _ I N GG NN DD 6 54 2 1 100K PSVCC 3 R11 100K 2 1 2 +5V 2 C5 56uF/35V C6 56uF/35V 1 2 3 Q2 2N3903 VLCD adjustable -14v to -23v 11 10 V O U T _ A D J D C _ O NNNN U C3 T C9 C7 C8 D C _ O U T R12 R14 1K R15 100K PSGND +12V +5V GND S-MOS SYSTEMS INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size Document Number B Date: 13503-6.SCH December 12, 1996 Sheet 6 of REV 1.0 7
L2
PSVCC
1
L3
Figure 6: S5U13503B00C Rev. 1.0 Schematic Diagram (6 of 7)
PSGND
1
+12V
+5V
VSS
S1D13503 X18A-G-007-05
Page 23
Page 24
S1D13503 X18A-G-007-05
+5V U10 1 NC OUT OSC-14 When the oscillator package is used, the stabilizing capacitors and resistor must be removed. GND 7 VCC OSC1 4 R16 2M Y1 1 25.175Mhz 8 14 OSC2 C7 7pF C8 7pF BYPASS CAPACITORS (1/POWER PIN) +5V C11 .01uF C12 .01uF C13 .01uF C14 .01uF C15 .01uF C16 .01uF C17 .01uF C18 .01uF C19 .01uF C20 .01uF C21 .01uF C22 .01uF C23 .01uF +5V +12V C9 10uF C10 10uF S-MOS SYSTEMS, INC. Title S5U13503B00C SMD ISA-BUS EVALUATION BOARD Size B Date: Document Number 13503-7.SCH December 13, 1996 Sheet 7 of REV 1.0 7
Figure 7: S5U13503B00C Rev. 1.0 Schematic Diagram (7 of 7)
+12V
+12V
+5V
+5V
Epson Research and Development Vancouver Design Center
S5U13503B00C Rev. 1.0 Evaluation Board User Manual Issue Date: 01/01/30
VSS
GND
S1D13503 Dot Matrix Graphics LCD Controller
Power Consumption
Document Number: X18A-G-006-04
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-006-04
Power Consumption Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
1 S1D13503 POWER CONSUMPTION
1.1 Conditions
Table 1-1: S1D13503 Total Power Consumption - 3.0V Operation Test Condition Gray Shades / Colors Total Power Consumption Power Save Mode Active 1 2 5.4 mW 6.4 mW 7.6 mW 8.8 mW 10.3 mW 12.7 mW 19.7 mW 24.3 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 2.7 mW 2.7 mW less than 300 uW less than 300 uW less than 300 uW less than 300 uW less than 300 uW less than 300 uW less than 300 uW less than 300 uW
Black-and-White Input Clock = 6 MHz 1 LCD Panel Connected = 320x240 Monochrome 4 Grays 16 Grays VDD = 3.0V Input Clock = 6 MHz 2 LCD Panel Connected = 320x240 Color VDD = 3. V 4 Colors 16 Colors 256 Colors
Input Clock = 25 MHz Black-and-White 3 LCD Panel Connected = 640x480 Monochrome 4 Grays VDD = 3.0V Input Clock = 25 MHz 4 LCD Panel Connected = 640x480 Color VDD = 3.0V 4 Colors
33.1 mW
2.7 mW
less than 300 uW
Table 1-2: S1D13503 Total Power Consumption - 5.0V Operation Test Condition Gray Shades / Colors Total Power Consumption Power Save Mode Active 1 2 26.0 mW 29.7 mW 35.7 mW 37.8 mW 44.5 mW 52.8 mW 76.0 mW 92.0 mW 10.5 mW 10.5 mW 10.5 mW 10.5 mW 10.5 mW 10.5 mW 16.7 mW 16.7 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 1.2 mW 1.0 mW 1.0 mW
Black-and-White Input Clock = 6 MHz 1 LCD Panel Connected = 320x240 Monochrome 4 Grays 16 Grays VDD = 5.0V Input Clock = 6 MHz 2 LCD Panel Connected = 320x240 Color VDD = 5.0V 4 Colors 16 Colors 256 Colors
Input Clock = 25 MHz Black-and-White 3 LCD Panel Connected = 640x480 Monochrome 4 Grays VDD = 5.0V Input Clock = 25 MHz 4 LCD Panel Connected = 640x480 Color VDD = 5.0V 4 Colors
120.8 mW
16.7 mW
1.0 mW
Power Consumption Issue Date: 01/01/30
S1D13503 X18A-G-006-04
Page 4
Epson Research and Development Vancouver Design Center
S1D13503 Total Power Consumption - 3V
35
Condition 1 - BW
30
Condition 1 - 4 grays Condition 1 - 16 grays
25
Condition 2 - 4 color
Power mW
20
Condition 2 - 16 color Condition 2 - 256 color
15
Condition 3 - BW Condition 3 - 4 color
10
Condition 4 - 4 color
5
0
ACTIVE
PSM 1 Operating Mode
PSM 2
S1D13503 Total Power Consumption - 5V
140
Condition 1 - BW
120
Condition 1 - 4 grays Condition 1 - 16 grays Condition 2 - 4 color Condition 2 - 16 color Condition 2 - 256 color Condition 3 - BW Condition 3 - 4 color Condition 4 - 4 color
100
Power mW
80
60
40
20
0
ACTIVE
PSM 1 Operating Mode
PSM 2
S1D13503 X18A-G-006-04
Power Consumption Issue Date: 01/01/30
S1D13503 Dot Matrix Graphics LCD Controller
ISA Bus Interface Considerations
Document Number: X18A-G-003-05
Copyright (c) 1995, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-003-05
ISA Bus Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
Table of Contents
1 2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
16-BIT ISA BUS INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 2.2 2.3 PAL Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Additional Discrete Logic Description . . . . . . . . . . . . . . . . . . . . . . . . 7 S1D13503 Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3.2 Register Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3
8-BIT ISA BUS INTERFACE
3.1
.............................9
S1D13503 Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.2 Register Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
List of Figures
Figure 1: 16-Bit ISA Bus Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 2: 8-Bit ISA Bus Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
ISA Bus Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-003-05
Page 4
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-003-05
ISA Bus Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 5
1 INTRODUCTION
The S1D13503 is a general purpose LCD controller capable of interfacing to a variety of microprocessors. In some cases this interface is accomplished through the use of minimal external circuitry. This application note describes the interface between the S1D13503 and the ISA Bus both 8 and 16-bit implementations.
1.1 Reference Material
Refer to the S1D13503 Hardware Functional Specification (X18A-A-001-xx) for complete AC timing details. This document makes no attempts to describe the operation of the ISA Bus, please refer to the appropriate ISA Bus documentation for complete information.
ISA Bus Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-003-05
Page 6
Epson Research and Development Vancouver Design Center
2 16-BIT ISA BUS INTERFACE
For the purpose of the example shown below, the following conditions apply: 1. 2. Indexed I/O with addresses 0310h and 0311h (see Configuration Options) 128Kbytes of display memory occupying $C and $D segments (see Configuration Options)
Note This memory configuration will conflict with a VGA card installed on the same bus, therefore either a serial terminal or monochrome display adapter is recommended as the primary console. This section provides the necessary logic equations and settings to complete the interface between the S1D13503 and the 16-bit ISA Bus. Note A PAL was used instead of discrete logic to reduce external component count.
16-Bit ISA Bus
AEN REFRESH SA1-15 SA0-19 SBHE# SD0-15 SMEMW# SMEMR# IOW# IOR# IOCHRDY 1 IOCS16# LA17-23 4 MEMCS16# 6 3
S1D13503
IOCS#
VCC
PAL
MEMCS#
10k
AB0-19 BHE# DB0-15 MEMW MEMR IOW# IOR# READY VD0,VD7, VD11-12, VD14-15
A
2
IOCS16EN
B
P 5 Q
LA23-17 (p0-6) 0000110 (q0-6)
74LS09 G 74LS688
Figure 1: 16-Bit ISA Bus Implementation
S1D13503 X18A-G-003-05
ISA Bus Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 7
2.1 PAL Equations
The PAL is programmed with the following equations: Note A '!' placed before a signal name indicates a logic '0' state. A '&' indicates a logic 'AND' function. 1. As stated above, the default I/O address is from 0310h to 0311h. The S1D13503 provides internal decoding of address bits A0 to A9, therefore minimal external circuitry is necessary to provide signals IOCS# and IOCS16# IOCS# is required by the S1D13503 to indicate a valid I/O cycle. In an ISA bus environment, valid I/O decoding must include addresses A15-A0. As A0-A9 are decoded internally, the equation must only guarantee that addresses A10-15 must all be '0' and AEN must also be '0'. IOCS# = !(!AEN & !A15 & !A14 & !A13 & !A12 & !A11 & !A10) 2. As the S1D13503 is capable of 16-bit I/O access, the IOCS16# bus signal must be driven externally to indicate such a cycle. As stated in the ISA specification, the IOCS16# is a straight address decode without qualification. IOCS16EN# = !(!IOCS# & A9 & A8 & !A7 & !A6 & !A5 & A4 & !A3 & !A2 & !A1) 3. With 128Kbytes of display memory and A17 to A19 decoded internally to S1D13503; MEMCS# = !REFRESH
Note The MSBs of the address (A23:A20) need not be externally decoded if using SMEMW# and SMEMR# as they will only assert on addresses < 1Mb.
2.2 Additional Discrete Logic Description
1. As shown in Figure 1, the 74LS688 is configured as a memory decoder with valid addresses between 0C0000h and 0DFFFFh. This provides the MEMCS16# signal allowing for 16-bit memory cycles. As stated in the ISA specification, the MEMCS16# is a straight address decode without qualification. The 74LS09 is used simply to provide the Open-Collector outputs necessary for the IOCS16# and MEMCS16# signals.
2.
2.3 S1D13503 Default Setup 2.3.1 Configuration Options
The S1D13503 latches the state of the SRAM data bus during RESET to determine the power-on configuration. The chip has internal pull-down resistors and therefore external pull-ups are only necessary when requiring a '1' state, see below. 1. 2. 3. 4. 5. 6. VD15 - VD13 = 110 VD12 - VD4 = 110001000 VD3 = 0 VD2 = 0 VD1 = 0 VD0 = 1 memory decoding for locations $C and $D segments I/O decoding for locations 0310h and 0311h (1100010000b - 1100010001b) No byte swap of high and low bytes ISA Bus interface, i.e. non- MC68K interface Indexed I/O 16-bit bus interface
Where 1 = pull-up with a 10K resistor; 0 = no pull-up resistor
ISA Bus Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-003-05
Page 8
Epson Research and Development Vancouver Design Center
2.3.2 Register Setting
All register settings are completely programmable with the following exceptions: - Memory Interface, AUX[1] bit 1 = 0 for 16-bit memory interface. Note This bit is forced = 0 when 16-bit CPU Interface is selected through VD0 on power-up. - RAMS, AUX[1] bit 0, this bit is ignored in 16-bit memory configurations. All other registers are dependent on display type, resolution, color and mode of operation, see Functional Specification for details.
S1D13503 X18A-G-003-05
ISA Bus Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 9
3 8-BIT ISA BUS INTERFACE
For the purpose of the example shown below, the following conditions apply: 1. Indexed I/O with partial decoding, i.e. address lines A10 to A15 are not decoded for I/O cycles
Note Partial decoding is quite safe on most ISA Bus systems as I/O addresses above 03FFh are rarely used. 2. 3. I/O addresses are 0300h and 0301h (xxxxxx1100000000b and xxxxxx1100000001b) 64Kbytes of display memory occupying $A segment
Note The 74LS00 is simply used to detect the $B segment and invalidate the MEMCS# input. Note This memory configuration may conflict with a VGA card installed on the same bus, therefore either a serial terminal or monochrome display adapter is recommended as the primary console. This section provides the necessary settings to complete the interface between the S1D13503 and the 8-bit ISA Bus. Since I/O addresses are partially decoded, there is no need to use a PAL for decoding.
8-Bit ISA Bus
AEN REFRESH SA16 SA0-19 1 4 5 3
S1D13503
IOCS# BHE#
VCC
B
6
2
A
MEMCS# VD11-13, VD15
10k
74LS00 AB0-19
SD0-7 SMEMW# SMEMR# IOW# IOR# IOCHRDY
DB0-7 MEMW MEMR IOW# IOR# READY
Figure 2: 8-Bit ISA Bus Implementation
ISA Bus Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-003-05
Page 10
Epson Research and Development Vancouver Design Center
3.1 S1D13503 Default Setup 3.1.1 Configuration Options
The S1D13503 latches the state of the SRAM data bus during RESET to determine the power-on configuration. The chip has internal pull-down resistors and therefore external pull-ups are only necessary when requiring a '1' state, see below. 1. 2. 3. 4. 5. 6. VD15 - VD13 = 101 VD12 - VD4 = 110000000 VD3 = 0 VD2 = 0 VD1 = 0 VD0 = 0 memory decoding for locations $A segment I/O decoding for locations 1100000000b - 1100000001b No byte swap of high and low bytes ISA Bus interface, i.e. non- MC68K interface Indexed I/O 8-bit bus interface
Where 1 = pull-up with a 10K resistor; 0 = no pull-up resistor
3.1.2 Register Setting
All register settings are completely programmable and are dependent on display type, resolution, color and mode of operation, see Functional Specification for details.
S1D13503 X18A-G-003-05
ISA Bus Interface Considerations Issue Date: 01/01/30
S1D13503 Dot Matrix Graphics LCD Controller
MC68340 Interface Considerations
Document Number: X18A-G-004-04
Copyright (c) 1996, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-004-04
MC68340 Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
Table of Contents
1 2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
MC68340 MPU INTERFACE
2.1 2.2 2.3 MC68340 Setup
.............................6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
PAL Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 S1D13503 Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
List of Figures
Figure 1: MC68340 MPU Interface Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
MC68340 Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-004-04
Page 4
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-004-04
MC68340 Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 5
1 INTRODUCTION
The S1D13503 is a general purpose LCD controller capable of interfacing to a variety of microprocessors. This interface is accomplished through the use of minimal external circuitry. This application note describes the interface between the S1D13503 and the 16-bit MC68340 microcontroller.
1.1 Reference Material
Refer to the S1D13503 Hardware Functional Specification (X18A-A-001-xx) for complete AC timing details. This document makes no attempts to describe the operation of the MC68340 microcontroller, please refer to the appropriate MC68340 documentation for this information.
MC68340 Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-004-04
Page 6
Epson Research and Development Vancouver Design Center
2 MC68340 MPU INTERFACE
The following sections provide the necessary settings and equations to complete the interface between the S1D13503 and the MC68340 microcontroller.
MC68340
CS3 SIZ0
S1D13503
MEMCS#
VCC
PAL
A0 A10-A17
IOCS# BHE# VD0-VD3 VD13
10k
A0-A19 D0-D15
AB0-AB19 DB0-DB15
VCC
VCC
MEMR# MEMW# READY IOR# IOW# RESET
4.7k
DSACK1 AS R/W RESET
Figure 1: MC68340 MPU Interface Block Diagram
2.1 MC68340 Setup
For the purpose of this example, the following conditions apply: The internal chip select signal CS3 of the MC68340, along with external DSACK1 response, is employed to access the S1D13503. Direct mapping of the I/O with starting address at 00000000h, and 128Kbytes of display memory with starting address 00020000h are also used. 1. 2. 3. 4. CS3 with 256kbyte block size - starting address at 00000000h and ending address at 0003FFFFh External DSACK1 response - 16-bit port Don't care Function Codes and with CPU space access Both read and write accesses are allowed
Settings for the Address Mask register and Base Address register for the above conditions are: 058h - 05Bh 05Ch - 05Fh = 0003FFFFh = 000000F5h Address Mask register Base Address register
S1D13503 X18A-G-004-04
MC68340 Interface Considerations Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 7
2.2 PAL Equations
The PAL is programmed with the following equations: 1. With direct-mapping I/O occupying locations from 00000000h to 0000000Fh and A4 to A9 decoded internally to S1D13503; IOCS# = !(!CS3 & !A17 & !A16 & !A15 & !A14 & !A13 & !A12 & !A11 & !A10) With memory locations from 00020000h to 003FFFFh and A17 to A19 decoded internally to S1D13503; MEMCS# = CS3 BHE# becomes valid for two conditions: 1. 16-bit or 32-bit cycle, i.e., SIZ0=0 2. 8-bit cycle with odd byte access, i.e., SIZ0=1 and A0=1; BHE# = SIZ0 & !A0
2. 3.
2.3 S1D13503 Default Setup Configuration Options
1. 2. 3. 4. 5. 6. VD15 - VD13 = 001 VD12 - VD4 = 000000xxx VD3 = 1 VD2 = 1 VD1 = 1 VD0 = 1 memory decoding for locations 20000h - 3FFFFh I/O decoding for locations 0000000000b - 0000001111b byte swap of high and low bytes MC68K interface direct-mapping I/O 16-bit bus interface
Where x = don't care; 1 = pull-up with a 10K resistor; 0 = no pull-up resistor Note The states of these data pins are internally latched during RESET.
Register Setting
AUX[1] bit 1 = 0 for 16-bit memory interface (must be 16-bit with a 16-bit bus).
MC68340 Interface Considerations Issue Date: 01/01/30
S1D13503 X18A-G-004-04
Page 8
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-004-04
MC68340 Interface Considerations Issue Date: 01/01/30
S1D13503 Dot Matrix Graphics LCD Controller
LCD Panel Options / Memory Requirements
Document Number: X18A-G-005-05
Copyright (c) 1995, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-005-05
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
Table of Contents
1 2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
CONFIGURATION EQUATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 2.2 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 2.1.1 Input Clock Requirement Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 SRAM Size and Access Time Requirements . . . . . . . . . . . . . . . . . . . . . 7 2.2.1 SRAM Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2.2 SRAM Access Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 4
CONCLUSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1 16-Bit Display Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . .8 4.1.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.1.2 Register Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
List of Figures
Figure 1: 16-Bit Memory Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
S1D13503 X18A-G-005-05
Page 4
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-005-05
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 5
1 INTRODUCTION
The S1D13503 is a highly configurable general purpose LCD controller. The LCD panel frame-rate, resolution, and number of colors / gray shades all determine the memory and input clock requirements. This application note describes the equations used to determine the various parameters. An example resolution and desired frame-rate will be selected and used to determine the remaining variables.
1.1 Reference Material
Refer to the S1D13503 Hardware Functional Specification (X18A-A-001-xx) for complete AC timing details.
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
S1D13503 X18A-G-005-05
Page 6
Epson Research and Development Vancouver Design Center
2 CONFIGURATION EQUATIONS
This application note will follow one example through all the required calculations. For a complete description of all formula and associated parameters refer to the Hardware Functional Specification.
2.1 Example
LCD panel resolution: LCD panel configuration: LCD colors: Desired frame-rate: S1D13503 operating voltage: 320x240 8-bit, single panel, single drive panel 256 70Hz 3.3v
2.1.1 Input Clock Requirement Calculation
For a frame rate of 70Hz, the input clock (or pixel clock) frequency can be calculated as following: fOSC = input clock
fOSC = FrameRate x ( NumberOfHorizontalPixels + PHNDP + DHNDP ) x ( NumberOfVerticalLines + 4 )
Where DHNDP is Default Horizontal Non-Display Period in term of pixels: DHNDP = 16 pixels in gray shade display modes, and DHNDP = 32 pixels in BW display mode and in color display modes. Where PHNDP is Programmable Horizontal Non-Display Period in term of pixels: PHNDP = 0 pixels when AUX[0C] = 0, and
) PHNDP = ( AUX [ 0C ] + 1 ) x ( MemoryInterfaceWidth - pixels when AUX[0C] not equal to zero. ---------------------------------------------------------------------------------------------------------------( BitsPerPixel )
Note For this example we will use DHNDP = 32, PHNDP = 0 Therefore: fOSC = 70 * (320 + 32) * (240 + 4) fOSC = 6.0 MHz
S1D13503 X18A-G-005-05
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 7
2.2 SRAM Size and Access Time Requirements 2.2.1 SRAM Size
Memory Size (bytes) =
( Horizontalpixels ) x ( Verticallines ) x ( BitsPerPixel ) -------------------------------------------------------------------------------------------------------------------------------------------8
i.e., 256 colors = 8 bits / pixel, therefore 1 byte (8 bits) = 1 pixel Therefore: Memory size (bytes) = (320 * 240) * 8 /8 Memory size (bytes) = 76.8 K bytes. Note For a detailed description of the memory size requirement, see section 9.4 of the S1D13503 Hardware Functional Specification, drawing office number X18A-A-001-xx.
2.2.2 SRAM Access Time
To support 256 color modes the S1D13503 must be configured to support a 16-bit data path into display memory (SRAM). For 16-bit display memory interface the required SRAM access time must be: SRAM Access time < 1/fOSC - 40nsec. (3.3v specification) Therefore using a 6.0 Mhz input clock: SRAM access time must be < 127 ns. Note For a detail description of the SRAM access time, see section 9.2 of the S1D13503 Hardware Functional Specification, drawing office number X18A-A-001-xx.
3 CONCLUSIONS
To support a 320x240 256 color panel at 70 Hz refresh, you require a 6.0 MHz input clock, and 76.8K Bytes of 127nsec access time SRAM.
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
S1D13503 X18A-G-005-05
Page 8
Epson Research and Development Vancouver Design Center
4 IMPLEMENTATION
4.1 16-Bit Display Memory Interface
Since 76.8K bytes with at least 127ns access time SRAM is required, one 64Kx16 byte SRAM with 120ns access time will be used for this example.
320x240 Color LCD
UD0-3 LD0-3
YD
LP XSCL
VWE#
WE#
SRAM 64Kx16
VCS0#
6.0MHz OSC1
LB# UB#
VCS1#
VA0-15 VD0-7 VD8-15
A0-15 I/O 1-8 I/O 9-16
S1D13503
Figure 1: 16-Bit Memory Configuration Example
4.1.1 Configuration Options
VD0 = pull-up (with a 10K resistor) for 16-bit bus interface. Other option settings are not related to this implementation.
S1D13503 X18A-G-005-05
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 9
4.1.2 Register Settings
AUX[0] = 0000 0000 AUX[1] = 1011 100x AUX[2] = 1001 1111 AUX[3] = 0000 0110 AUX[4] = 1110 1111 AUX[5] = 0000 0000 AUX[6] = 0000 0000 AUX[7] = 0000 0000 AUX[8] = xxxx xxxx AUX[9] = xxxx xxxx AUX[A] = 1110 1111 AUX[B] = xxxx xx00 AUX[D] = 0000 0000 x = don't care A sample of values for the Look Up Table to produce 256 colors is shown below; RED: [00 02 04 06 09 0B 0D 0F]0F 0D 0B 09 06 04 02 00 not in test mode 8-bit single panel, 256 color, 16-bit display memory interface horizontal resolution = 320 ; 256 colors = 1 pixels per byte; 1 pixels per fetch not in power save modes total 240 scan lines WF = 0 default starting address at 0000h (with AUX[6]) don't care when not using split screen don't care when not using split screen together with AUX[B] bit1-0, should be the same as or larger than AUX[5] bit1-0 and AUX[4] when not using split screen no virtual screen
GREEN:[00 02 04 06 09 0B 0D 0F]0F 0D 0B 09 06 04 02 00 BLUE: [00 05 0A 0F]0F 0A 05 00 01 06 09 0E 0D 09 04 02 Note Refer to S1D13503 Programming Notes and Examples, X18A-G-002-xx, for further information.
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
S1D13503 X18A-G-005-05
Page 10
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13503 X18A-G-005-05
LCD Panel Options / Memory Requirements Issue Date: 01/01/30
S1D13503 Dot Matrix Graphics LCD Controller
S1D13503 / S1D13502 Comparison
Document Number: X18A-G-008-04
Copyright (c) 1997, 2001 Epson Research and Development, Inc. All Rights Reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.
Page 2
Epson Research and Development Vancouver Design Center
THIS PAGE LEFT BLANK
X18A-G-008-04
S1D13503 / S1D13502 Comparison Issue Date: 01/01/30
Epson Research and Development Vancouver Design Center
Page 3
1 S1D13503 / S1D13502 Comparison
The S1D13503 is pin compatible with, and includes all features of the S1D13502. This allows an easy upgrade path for the system designer, both from the hardware and software aspect. The purpose of this document is to briefly describe the differences between these two controllers, for further details refer to the individual Hardware Functional Specifications.
1.1 Feature Comparison
Feature Color Monochrome Display Data Formats * * * * * Programmable Horizontal * Non-Display Period * Look-Up Tables Revision Code * S1D13503 4 / 16 / 256 colors Black-and-White 4 / 16 Gray Shades 4 / 8-bit, Single / Dual Monochrome panel support 4 / 8 / 16-bit Single / Dual Color panel support (Note) Yes 3x16 position, 4-bit wide Look-Up Tables 2-bit fixed * * * * * * * * S1D13502 Not available Not available 4 / 16 Gray Shades 4 / 8-bit, Single / Dual Monochrome panel support Not available Fixed 1x16 position, 4-bit wide Look-up Table 1-bit fixed
Note 16-bit color panel support is provided by the S1D13503 using external logic. All other features not mentioned above are supported by both controllers. See the S1D13503 Hardware Functional Specification, X18A-A-001-xx, and the S1D13502 Hardware Functional Specification, X16-SP-001-xx, for further details.
S1D13503 / S1D13502 Comparison Issue Date: 01/01/30
X18A-G-008-04
Page 4
Epson Research and Development Vancouver Design Center
1.2 S1D13503 Register Changes / Additions From The S1D13502
See the S1D13503 Hardware Functional Specification, X18A-A-001-xx, for details on these registers.
AUX[01h]
bit 2 bit 3 LCD Data Width bit 0 Gray Shade / Color
AUX[03h]
bit 1 bit 2 bit 3 Color Mode BW / 256 Colors LCD Data Width bit 1
AUX[0Ch]
bit 0:7 Horizontal Non-Display Period
AUX[0Eh]
bit 4 bit 5 bit 6 bit 7 ID Bit / RGB Index Bit 0 ID Bit / RGB Index Bit 1 Green Bank Bit 0 Green Bank Bit 1
AUX[0Fh]
bit 4 bit 5 bit 6 bit 7 Blue Bank Bit 0 Blue Bank Bit 1 Red Bank Bit 0 Red Bank Bit 1
X18A-G-008-04
S1D13503 / S1D13502 Comparison Issue Date: 01/01/30


▲Up To Search▲   

 
Price & Availability of S1D13503

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X